git ssb

39+

cel / git-ssb



Tree: d97d03c4e98365899f1bdb1fa12303723f9f8711

Files: d97d03c4e98365899f1bdb1fa12303723f9f8711 / lib / index.js

932 bytesRaw
1var cmds = require('./cmds')
2
3exports.help = `
4Usage: git ssb [--version] [command] [--help]
5
6Commands:
7 create Create a git repo on SSB
8 fork Fork a git repo on SSB
9 forks List forks of a repo
10 issues List issues for a repo
11 prs List pull requests for a repo
12 authors List contributors to a repo
13 log List history of updates to a repo
14 name Name a repo
15 named Search for repos by name
16 pull-request Create a pull-request
17 web Serve a web server for repos
18 help Get help about a command
19`
20
21exports.fn = function (argv) {
22 if (argv.version) return require('./version')(argv)
23 if (argv.help) return require('./help').fn(argv)
24 if (argv._.length === 0) return require('./help').fn(argv)
25
26 var cmd = argv._.shift()
27 var mod = cmds.getCmd(cmd)
28 var fn = mod && mod.fn
29 if (!fn) throw `No such command '${cmd}'`
30 fn(argv)
31}
32

Built with git-ssb-web