Skip to content

LongLiveCHIEF/vector.cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vector.cli

Note: Functionality described below is not yet implemented, unless indicated otherwise.

Vector.cli is a library to help you build command line applications and configuration tools with node.js. Vector is designed to support hightly advanced/nested cli operations, heirarchical command management and mutation, and heirarchical configuration management built-in (via [nconf][nconf])

Usage

vector.cli will load all files in given directory, and add a sub-command for each matched filename. Each sub-directory of given path will be nested underneath the named sub-command, unless an ignore is set.

The following file paths:

var vcli = require("vcli");

var program = vcli({
  match: 'glob',
  ignore: 'glob'
});

program.appendFromPath('/path/to/command/dir');

});

//someCommand.js
var {command} = reequire("vcli");

command.subscribe(
  results => myAction(),  // do something whenever command is called
  err => handleError()
);
module.exports = command;

[//]: # Links [nconf]: npmjs.org/nconf

About

A vector based node command line application builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published