mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Added support for a serverside tiddler file store
Preparatory to implementing saving changes to the server
This commit is contained in:
parent
f8595c52a7
commit
0cfef8affa
47 changed files with 127 additions and 20 deletions
|
|
@ -9,6 +9,7 @@ TiddlyWiki command line interface
|
|||
|
||||
var App = require("./js/App.js").App,
|
||||
WikiStore = require("./js/WikiStore.js").WikiStore,
|
||||
FileStore = require("./js/FileStore.js").FileStore,
|
||||
Tiddler = require("./js/Tiddler.js").Tiddler,
|
||||
Recipe = require("./js/Recipe.js").Recipe,
|
||||
tiddlerInput = require("./js/TiddlerInput.js"),
|
||||
|
|
@ -47,6 +48,7 @@ var parseOptions = function(args,defaultSwitch) {
|
|||
|
||||
var switches = parseOptions(Array.prototype.slice.call(process.argv,2),"dummy"),
|
||||
recipe = null,
|
||||
fileStore = null,
|
||||
lastRecipeFilepath = null,
|
||||
currSwitch = 0;
|
||||
|
||||
|
|
@ -106,6 +108,14 @@ var commandLineSwitches = {
|
|||
});
|
||||
}
|
||||
},
|
||||
store: {
|
||||
args: {min: 1, max: 1},
|
||||
handler: function(args,callback) {
|
||||
fileStore = new FileStore(args[0],app.store,function() {
|
||||
callback(null);
|
||||
});
|
||||
}
|
||||
},
|
||||
savewiki: {
|
||||
args: {min: 1, max: 1},
|
||||
handler: function(args,callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue