mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-05-05 17:04:10 +00:00

* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
33 lines
643 B
JavaScript
33 lines
643 B
JavaScript
/*\
|
|
title: $:/core/modules/startup/commands.js
|
|
type: application/javascript
|
|
module-type: startup
|
|
|
|
Command processing
|
|
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
// Export name and synchronous status
|
|
exports.name = "commands";
|
|
exports.platforms = ["node"];
|
|
exports.after = ["story"];
|
|
exports.synchronous = false;
|
|
|
|
exports.startup = function(callback) {
|
|
// On the server, start a commander with the command line arguments
|
|
var commander = new $tw.Commander(
|
|
$tw.boot.argv,
|
|
function(err) {
|
|
if(err) {
|
|
return $tw.utils.error("Error: " + err);
|
|
}
|
|
callback();
|
|
},
|
|
$tw.wiki,
|
|
{output: process.stdout, error: process.stderr}
|
|
);
|
|
commander.execute();
|
|
};
|