@kapeta/blockctl-command

0.0.9 • Public • Published

Command SDK for Kapeta command line utility

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

Example use:

const KapetaCommand = require('@kapeta/blockctl-command');
const packageData = require('./package');

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

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

Readme

Keywords

Package Sidebar

Install

npm i @kapeta/blockctl-command

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

2.94 kB

Total Files

5

Last publish

Collaborators

  • wejendorp
  • sorenmat
  • vonhofmeister