{"_id":"sb-command","_rev":"11-8eef6fceb4b0ba4a66a77234b06dab12","name":"sb-command","description":"CLI command and options parser","dist-tags":{"latest":"2.0.6"},"versions":{"0.0.1":{"name":"sb-command","version":"0.0.1","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"a88a8e6a6f55c2932ab532e6fae6f637584b0a15","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@0.0.1","_shasum":"19f2a1991cb3654aed6347f002510dce06eeb86a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"19f2a1991cb3654aed6347f002510dce06eeb86a","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-0.0.1.tgz","integrity":"sha512-KXsNyDmgs0+8Rl3/p4DLVYYumUNwgn0ctQj8jI1wot8JmKDShGiAq9WJ1WTDWmx2tNSoHSBxyZ65K0rIwY2SQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAbyYPQZwkvA5uSxXG4+GoGyGma1NYq7JZJD4c1qjP0AiEAmU7HntIaHDIaB78XySSgLlX5Hfxt7Qz3woVJxVBfrds="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sb-command-0.0.1.tgz_1481762693350_0.4653151584789157"}},"1.0.0":{"name":"sb-command","version":"1.0.0","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"0061a5da40423899931f3cd0cdf6f51a324e23dd","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@1.0.0","_shasum":"3280e7ce0095bf3d3d86bb84f5460d8f97882239","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"3280e7ce0095bf3d3d86bb84f5460d8f97882239","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-1.0.0.tgz","integrity":"sha512-pErLWa9guMFFNSb0mfvWd2v1Q+ncCsD8zbG0cToSyWW2Kiw2io9gqbVqHguBZj//6VUVpNWu1qxhZ3iFEo1dlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj5k0bniYJFaOjNV2W8732lgRnSh0bRFsTPOQPG/QksAiEAgvxiW4DZFp+jnw29rnOjBBeTLHbv7BF+ZR/6VLx60RQ="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sb-command-1.0.0.tgz_1481769192616_0.12799857510253787"}},"2.0.0":{"name":"sb-command","version":"2.0.0","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"a92107a108f6f0067a01964c664e00935c48d6a2","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.0","_shasum":"478d06b5e779ca397e8fc872152ffc5da8772735","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"478d06b5e779ca397e8fc872152ffc5da8772735","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.0.tgz","integrity":"sha512-TmUvABWkOobP94RlgBrqMNXHhcikPUmlnVTIQQ2DqnVaasqbGdabcI3nk057tRS7LLJAOQlrMheazbzDoo2keQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEae0wEsbYDFUpvIEsULqFR1bvx/muZ5EVg4zjSPxnI6AiEAqs0QlvRpestI3yqCxdF1lIEcC7WD7mEAi6v3onr1LRU="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sb-command-2.0.0.tgz_1487621989555_0.38657235843129456"}},"2.0.1":{"name":"sb-command","version":"2.0.1","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"566827c5a64832feeb8d1d7e9b2d12571226a73d","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.1","_shasum":"067ffabb2f610ca2fb680ea41771fa3bc5f8da67","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"067ffabb2f610ca2fb680ea41771fa3bc5f8da67","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.1.tgz","integrity":"sha512-KHTPL8dTfcGTaF4xd+0+P1NWvDWkAIhwctmoM/Cs4HTJDvhKsNPrfzyJaB4fkh0fmWg/aqFvsVVgJSuvfORvsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtrI4Oz0Cv0BgVptK/hDMMleXGC0PXTHb5b6u2Fv+TEAiB3hsMNS0ROUjCg+AmykhOtKLWa8Ia50hx8J60VvzMJxA=="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sb-command-2.0.1.tgz_1487624347861_0.21574166603386402"}},"2.0.2":{"name":"sb-command","version":"2.0.2","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"f4783cd9f0fd62cf4bceda11f464c153e2e640f2","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.2","_shasum":"5defe6be9a95147c3701c809b6fa3aabbdacb167","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"5defe6be9a95147c3701c809b6fa3aabbdacb167","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.2.tgz","integrity":"sha512-774ICZQQ9kMrmwAGcFkWqecbQ8lLd4CUNNUDZVypg0EYMc7u+0mTV6M60lSvwziEwYGtS6UdhQQbkfanKdZawQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElWUxbckA1r0MxwTk6uRuvvt7KI52cwbGIVwrE4PLWXAiBD6Sw/dOjwNoY4kiJPubR1KtDC/+J7foVx6ZPiZEWJSw=="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sb-command-2.0.2.tgz_1487713274320_0.030375724425539374"}},"2.0.3":{"name":"sb-command","version":"2.0.3","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"3e23d2d193d38b180ffd88aa434d2afa25c95ba6","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.3","_shasum":"a738b5ce156ac0baefe4f41aebb5565092240d3c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"a738b5ce156ac0baefe4f41aebb5565092240d3c","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.3.tgz","integrity":"sha512-hXroQJzuCtGRzru0Hz0gj1XGEg5vBAe90Ok92NGKbJcR5hMsn4q091dV/wHUiIRi2c//rm5HV0y3QAzxVDPsig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHV7uSSbthlB2KXyNH8S2N9ILDzQvpRO9iuu2fBU6GsdAiEA5c8rHd3qJ7Ij7BFCnrHzfvAal9dAPG0hslj1I8upsME="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sb-command-2.0.3.tgz_1487810452756_0.05447200848720968"}},"2.0.4":{"name":"sb-command","version":"2.0.4","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"a76c0db6a61551743ca5f3698d1648760352242f","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.4","_shasum":"5e93a3e91452ac19c559efdb7cd79e8a4c6d6e11","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"5e93a3e91452ac19c559efdb7cd79e8a4c6d6e11","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.4.tgz","integrity":"sha512-B2qPaTDEBJhqVMxfch0kU5uFJ+QBLWD9y05L1pVr5qvxn3eeymiSnfFsbFlujla6omMoZo9/XLKICHHaMW+jbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVbyzFzlgRaNF6aaXvRN1BlKYCtmiY89g8o3uT67GSIgIgWRFGNiJIXZkVqyoml3HQFoM8gV/wDlJXBYj8b/rdpHs="}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sb-command-2.0.4.tgz_1487812059527_0.09316784422844648"}},"2.0.5":{"name":"sb-command","version":"2.0.5","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"b4701297b853858a979c9935a2a03a64ed041449","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.5","_shasum":"45cef168cb25a019a49ef7ad05b208b2615d3d63","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"45cef168cb25a019a49ef7ad05b208b2615d3d63","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.5.tgz","integrity":"sha512-4hBy72ocI5rsSpbjsjUKEEJSGbanoJaRqmM+Zxhs8DlybIeQWsppxJZ17RkevpMkXIDUtKKr8+MPuNVV7wgL1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3e01MZB7F4QlNW68y6q+IG4UtEzO9QJHlCFy2WJ8j5gIhAO4MkiVxR67CbtN5SjJu9KOr/SX4bW2UdJC8Xin42emb"}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sb-command-2.0.5.tgz_1487890973460_0.5160900945775211"}},"2.0.6":{"name":"sb-command","version":"2.0.6","description":"CLI command and options parser","main":"lib/index.js","scripts":{"test":"(apm test) && (flow check) && (eslint . )","clean":"rm -rf lib","build":"npm run clean; babel src --out-dir lib","watch":"npm run build -- -w"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"keywords":["cli","command","app"],"author":{"name":"steelbrain","email":"i@steelbrain.me"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/command/issues"},"dependencies":{"camelcase":"^4.0.0","cliff":"^0.1.10"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-steelbrain":"^4.0.2","eslint-config-steelbrain":"^1.0.4","flow-bin":"^0.32.0"},"gitHead":"c8b72f52cac3b1c67b20489d653231165065d36b","homepage":"https://github.com/steelbrain/command#readme","_id":"sb-command@2.0.6","_shasum":"4d340e44117166cf8021e0b1f6a711328e0fe0d8","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"dist":{"shasum":"4d340e44117166cf8021e0b1f6a711328e0fe0d8","tarball":"https://registry.npmjs.org/sb-command/-/sb-command-2.0.6.tgz","integrity":"sha512-x4l4Ri/x+xcgwnWKYqRQNjOPvWIh0T9Poji3oP73t5+896BZSh3hBt40+uS1I1kQN5MpMIbdv1kn1MoIn6uNyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjyIpie78hUWVp0DxY7+J6stXAA1NC7p48L6xapFizdAIhALKEMoGPOptua2rTuPKoa49vUHzdXOxI+NW9YhzALC+l"}]},"maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sb-command-2.0.6.tgz_1488524998350_0.7795715327374637"}}},"readme":"sb-command\n=========\n\nsb-command is the CLI parser you'll ever need.\n\n## Documentation\n\nThere are several types of parameters\n\n - `[name]` means `name` is an optional parameter\n - `<name>` means `name` is a required parameter\n - `[name...]` means `name` is an optional variadic parameter\n - `<name...>` means `name` is a required variadic parameter\n - Specifying no parameter with an option means it's boolean\n\nTo add nested commands, simply join them with dot. For example for `remote add` use `remote.add` as the command name.\n\nTo add configs specific to certain commands, do the `.option()` call after *that* particular `.command()` call. If you want your configs to be global, add them before adding any other command.\n\n### Example\n\n```js\nconst command = require('sb-command')\n\ncommand\n  .version('0.0.1')\n  .description('Git Versonal Control System')\n  .option('--disable-cache', 'Disable Git Cache')\n  .command('init', 'Initialize an empty repo', function(options) {\n    console.log('git-init')\n  })\n  .option('--shallow-copy', 'Initialize with shallow copy')\n  .command('add [file]', 'Add file contents to index', function(options, file) {\n    console.log('git-add', files)\n  })\n  .option('--dry-run', 'Try to stage the file into git index but dont actually do it')\n  .default(function(options, parameters) {\n    console.log(options, parameters)\n  })\n  .process()\n\n```\n\n### API\n\n```js\nexport class Command {\n  default(callback: Function): this\n  version(version: string): this\n  description(descriptionText: string): this\n  command(commandName: string, description: string, callback: ?Function): this\n  option(option: string, description: string, defaultValue: any = null): this\n  process(argv: Array<string> = process.argv): Promise<any>\n  showHelp(): string\n}\nexport default new command\n```\n\n## LICENSE\n\nThis package is licensed under the terms of MIT License. See the LICENSE file for more info.\n","maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"time":{"modified":"2022-06-26T16:16:38.388Z","created":"2016-12-15T00:44:55.239Z","0.0.1":"2016-12-15T00:44:55.239Z","1.0.0":"2016-12-15T02:33:14.557Z","2.0.0":"2017-02-20T20:19:51.293Z","2.0.1":"2017-02-20T20:59:09.919Z","2.0.2":"2017-02-21T21:41:14.876Z","2.0.3":"2017-02-23T00:40:53.421Z","2.0.4":"2017-02-23T01:07:40.204Z","2.0.5":"2017-02-23T23:02:54.088Z","2.0.6":"2017-03-03T07:09:58.989Z"},"homepage":"https://github.com/steelbrain/command#readme","keywords":["cli","command","app"],"repository":{"type":"git","url":"git+https://github.com/steelbrain/command.git"},"author":{"name":"steelbrain","email":"i@steelbrain.me"},"bugs":{"url":"https://github.com/steelbrain/command/issues"},"license":"MIT","readmeFilename":"README.md"}