@blockware/blockctl-command
SDK for making commands for the blockware CLI utility
Last updated 4 months ago by vonhofmeister .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @blockware/blockctl-command 
SYNC missed versions from official npm registry.

Command SDK for Blockware command line utility

Provides a simple wrapper around the commander module to ensure consistency in the blockware CLI

Example use:

const BlockwareCommand = require('@blockware/blockctl-command');
const packageData = require('./package');

// Create the subsection command object.
// This is made available through "blockctl mysubsection"
const command = new BlockwareCommand('mysubsection', packageData.version);

// Add handler for sub command - See commander docs for more
// $: blockctl subsection subcommand
command.program()
    .command('subcommand')  
    .action(() => doSomething());
                
//Tell the blockware command to parse arguments and run actions
command.start();

Current Tags

  • 0.0.2                                ...           latest (4 months ago)

2 Versions

  • 0.0.2                                ...           4 months ago
  • 0.0.1                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |