mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-02-27 10:30:51 -08:00
Added --dumprecipe option
This commit is contained in:
parent
b526f8bfaf
commit
d39b9a047f
2 changed files with 9 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ The command line options are processed in sequential order from left to right. P
|
|||
--savetiddlers <outdir> # Saves all the loaded tiddlers as `.tid` files in the specified directory
|
||||
--servewiki <port> # Serve the cooked TiddlyWiki over HTTP at `/`
|
||||
--servetiddlers <port> # Serve individual tiddlers over HTTP at `/tiddlertitle`
|
||||
--dumpstore # Dump the TiddlyWiki store in JSON format
|
||||
--dumprecipe # Dump the current recipe in JSON format
|
||||
--verbose # verbose output, useful for debugging
|
||||
|
||||
This example loads the tiddlers from a TiddlyWiki HTML file and makes them available over HTTP:
|
||||
|
|
|
|||
|
|
@ -127,6 +127,13 @@ var commandLineSwitches = {
|
|||
process.nextTick(function() {callback(null);});
|
||||
}
|
||||
},
|
||||
dumprecipe: {
|
||||
args: {min: 0, max: 0},
|
||||
handler: function(args,callback) {
|
||||
console.log("Recipe is:\n%s",util.inspect(recipe,false,10));
|
||||
process.nextTick(function() {callback(null);});
|
||||
}
|
||||
},
|
||||
load: {
|
||||
args: {min: 1, max: 1},
|
||||
handler: function(args,callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue