mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Added --dumprecipe option
This commit is contained in:
parent
b526f8bfaf
commit
d39b9a047f
@ -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…
Reference in New Issue
Block a user