Command line wiki instructions

There is a command line program for reading from the wiki, available at:

http://a.9srv.net/src/wiki

Usage is simple: "wiki -l" will list all the articles in the wiki; "wiki foo" will print the article "foo"; "wiki foo bar" looks for an article called "foo_bar", then one called "foo-bar", then separate "foo" and "bar" articles, and prints the first one it finds.

A version for plan9port is also available:

http://a.9srv.net/src/wiki-p9p

Edit the first line to reflect your local installation. It should behave as described above.

If a wiki is mounted on /mnt/wiki (Plan 9) or `{namespace}/wiki (plan9port), this script will use that, so that you can read from multiple wikis. Otherwise, it relise on "9fs wiki" finding a wiki installation. To connect to this wiki, put this in 9fs on Plan 9:

	case wiki
		srv -m 'net!p9f.org!wiki wiki /mnt/wiki

or this on plan9port:

	case wiki
		srv 'net!p9f.org!wiki' wiki

These are read-only at the moment. Extending them to be able to write, in a manner similar to what ipso(1) does, shouldn't be hard, but has not been attempted.

SEE ALSO

Acme Wiki instructions