Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 819 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 819 Bytes

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/kap-command');
const packageData = require('./package');

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

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

License

This project is licensed under the MIT License - see the LICENSE file for details