Socket
Socket
Sign inDemoInstall

@kapeta/blockctl-command

Package Overview
Dependencies
1
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kapeta/blockctl-command

SDK for making commands for the kapeta CLI utility


Version published
Maintainers
3
Install size
169 kB
Created

Readme

Source

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();

Keywords

FAQs

Last updated on 29 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc