plank

0.1.3 • Public • Published

Plank

CLI Module for Node.js

Installation

npm install plank

Usage

var cli = require('plank')();  

cli.setCommands({  
  test: {  
    command: function(cli, args) {  
      cli.log('hi!');  
    },  
    help: function(cli) {  
      cli.log(cli.tabulation + 'Hi, I am the help for this command...');  
      cli.log(cli.tabulation + 'I describe the command.........\n');  
    },  
    settings: {  
      usage: 'test [arguments]',  
      description: 'Testing...',  
      arguments: [{name: 'a', description: 'A is a...' }],  
      namespace: 'ns'  
    }  
  },  
});  

cli.run();

TODOs

  • Write, at least, a minimal documentation :D
  • For "list" command, enable filters by namespace (execute help list to read about namespace argument)

Changelog

0.1.3:

  • Fixed static name on console bootup (always showing plank instead of the setted name).

Readme

Keywords

none

Package Sidebar

Install

npm i plank

Weekly Downloads

0

Version

0.1.3

License

none

Last publish

Collaborators

  • sergiolepore