Wiki Edit Command Line

We consider manual curation of pages containing automatically updated items to be a best practice. Perhaps we could support this with a command-line interface.

cat data.json |\ wiki-edit asia.wiki.org data-feed 353526784

cat markup.txt |\ wiki-edit asia.wiki.org data-feed 353526784

Standard input goes to item with site slug and id. If input parses as JSON, whole item is replaced. If not, input replaces text field.

Convention would have the item be a Factory but need not be so. Throws error if item can't be found.

Need option to create page from template if a title is provided and page doesn't already exist.

for i in `ls data`; do cat data/$i | wiki-edit -t "Data $i" ... echo "- Data $i" done | wiki-edit -t "Index to Data" ...