Files: 8b6827337d6c9a677261c5987cb95bbee685d870 / control.js
389 bytesRaw
1 | exports.name = 'control' |
2 | exports.version = '0.0.0' |
3 | exports.permissions = { |
4 | master: {allow: ['close']}, |
5 | } |
6 | exports.manifest = { |
7 | stop: 'async' |
8 | } |
9 | exports.init = function (sbot, config) { |
10 | return { |
11 | stop: function (cb) { |
12 | sbot.close(function (err) { |
13 | if (err) return cb(err) |
14 | cb() |
15 | // TODO: make this not necessary |
16 | process.exit(0) |
17 | }) |
18 | } |
19 | } |
20 | } |
21 |
Built with git-ssb-web