All, I've been working on TiddlyServer, software for managing multiple wikis on your local box. I've been using the tiddlywiki command line commands in various places, like so: var $tw = require("tiddlywiki/boot/bootprefix.js").bootprefix(); delete $tw.browser; var server = require("tiddlywiki/boot/boot.js").TiddlyWiki($tw); server.boot.argv = ['/path/to/wikifolder, '--init', 'server'] server.boot.boot();
Unfortunately, this way of invoking the command line functions isn't synchronous, and I don't know how to tell when it completes. In this specific situation, I'm invoking rendertiddlers to try to extract the tiddlers from a wikifile into a wikifolder, before I start a server serving that wikifolder. The extraction is working fine, after a bit of testing, but the server starts before the extraction completes, and thus doesn't pick up and handle the extracted files. I'm wondering if there's any way to tell when server.boot.boot() and all it's subtasks has completed? Matt Lauber -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/e1e4901e-5808-4df3-8df1-59ed3631f1d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.