0.1.3 • Published 12 years ago

plank v0.1.3

Weekly downloads
16
License
-
Repository
github
Last release
12 years ago

Plank

CLI Module for Node.js

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

  • For "list" command, enable filters by namespace (execute help list to read about namespace argument)