git ssb

1+

mixmix / scuttle-shell



Commit 1fa83afef777f28f13f52b22b0c8ce690c8eecb0

better params

andre alves garzia authored on 7/13/2018, 2:57:20 PM
Henry committed on 9/4/2018, 4:46:02 PM
Parent: 4a030f061750b955cc3028f04d0cf62248113251

Files changed

examples/launch_sbot_custom_plugin.jschanged
server.jschanged
examples/launch_sbot_custom_plugin.jsView
@@ -1,7 +1,7 @@
11 let scuttleshell = require("../server")
22
33 console.log("Starting sbot, quitting after 30 seconds")
44 console.log("open http://localhost:8989/get-address")
5-scuttleshell.start(false, ["./examples/service-discovery"])
5 +scuttleshell.start({ plugins: ["./examples/service-discovery"] })
66
77 setTimeout(scuttleshell.stop, 30000)
server.jsView
@@ -7,10 +7,13 @@
77 const notifier = require('node-notifier')
88 const SysTray = require('systray').default
99 let tray = {}
1010
11-function start(appname, customPluginPaths) {
11 +function start(customConfig) {
1212
13 + customConfig = customConfig || {}
14 + let appname = customConfig.appname || false
15 + let customPluginPaths = customConfig.plugins || false
1316 let argv = process.argv.slice(2)
1417 let i = argv.indexOf('--')
1518 let conf = argv.slice(i + 1)
1619 argv = ~i ? argv.slice(0, i) : argv

Built with git-ssb-web