2012-07-13 17:17:46 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
/*
|
|
|
|
This is invoked as a shell script by NPM when the `tiddlywiki` command is typed
|
|
|
|
*/
|
|
|
|
|
2013-10-12 17:44:09 +00:00
|
|
|
var $tw = require("./boot/boot.js").TiddlyWiki();
|
2013-08-21 08:42:51 +00:00
|
|
|
|
|
|
|
// Pass the command line arguments to the boot kernel
|
|
|
|
$tw.boot.argv = Array.prototype.slice.call(process.argv,2);
|
2013-08-20 14:17:57 +00:00
|
|
|
|
|
|
|
// Boot the TW5 app
|
|
|
|
$tw.boot.boot();
|