Files: 87a65d74fc19501dc9c07b90c48108364bce60f3 / bin.js
325 bytesRaw
1 | |
2 | |
3 | if (process.argv.length < 3) { |
4 | console.error('usage: ssb-client <module> [<args>]') |
5 | process.exit(1) |
6 | } |
7 | |
8 | var ssbClient = require('.') |
9 | var path = require('path') |
10 | |
11 | var app = require(path.resolve(process.argv[2])) |
12 | |
13 | ssbClient(function (err, sbot, config) { |
14 | if (err) throw err |
15 | app.init(sbot, config) |
16 | }) |
17 |
Built with git-ssb-web