diff --git a/bin/codebox.js b/bin/codebox.js index 4710a5d6..efc9f6ba 100755 --- a/bin/codebox.js +++ b/bin/codebox.js @@ -32,6 +32,7 @@ program .option('-t, --templates [list]', 'Configuration templates, separated by commas', "") .option('-p, --port [port]', 'HTTP port', 3000) .option('-o, --open', 'Open the IDE in your favorite browser') +.option('-s, --settings [json]', 'Override Settings in JSON') .option('-e, --email [email address]', 'Email address to use as a default authentication') .option('-u, --users [list users]', 'List of coma seperated users and password (formatted as "username:password")', function (val) { return _.object(_.map((val || "").split(','), function(x) { @@ -48,7 +49,19 @@ program users: opts.users } }; - + + if (opts.settings) + { + try { + var u_options = JSON.parse(opts.settings); + if (u_options) + { + _.extend(options, u_options); + } + } catch (e) { + return console.error("Problem parsing settings. "+ e.message); + } + } codebox.start(options) .then(function() { if (program.email) return program.email; diff --git a/package.json b/package.json index f091b217..7f708d4d 100644 --- a/package.json +++ b/package.json @@ -86,21 +86,20 @@ "packageDependencies": { "about": "CodeboxIDE/package-about", "command-palette": "CodeboxIDE/package-command-palette", - "files-tree": "CodeboxIDE/package-files-tree", + "files-tree": "iotify/package-files-tree", "tabs": "CodeboxIDE/package-tabs", "editor": "CodeboxIDE/package-editor", "editorsync": "CodeboxIDE/package-editorsync", - "terminal": "CodeboxIDE/package-terminal", "pkgcontrol": "CodeboxIDE/package-pkgcontrol", "statusbar": "CodeboxIDE/package-statusbar", "watcher": "CodeboxIDE/package-watcher", "panels": "CodeboxIDE/package-panels", "find": "CodeboxIDE/package-find", "git": "CodeboxIDE/package-git", + "chat": "CodeboxIDE/package-chat", "settings": "CodeboxIDE/package-settings", "menubar": "CodeboxIDE/package-menubar", - "image": "CodeboxIDE/package-image", - "ctags": "CodeboxIDE/package-ctags" + "image": "CodeboxIDE/package-image" }, "scripts": { "test": "export TESTING=true; mocha --reporter list"