New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

commander-tabtab

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commander-tabtab

Tab/Auto Completion for Commander.js CLIs

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

#commander-tabtab

Tab/Auto Completion for Commander.js CLIs.

##Example

Look at the code of the Example App @ /examples/exampleapp

If installed properly and you entered exampleapp and striked tab you would get…

# exampleapp 
hello     helllllooooooo     world

Then if you were to enter exampleapp he and striked tab you would get…

# exampleapp hello
hello     helllllooooooo  

Or if you were to enter exampleapp w and striked tab you would get…

# exampleapp world

Simple!

##Installation

Use the example as a reference however if you need a hand drop me a note. @bencevans on Twitter and GitHub. You can find my email on my GitHub profile.

####Codebase

  • Require taptap-commander. commanderTabTab = require('taptap-commander');
  • Just before program.parse(argv); enter commanderTabTab.init(program, 'NAME OF YOUR BIN/CLI FILE/APP');

####In Terminal

  • Install your app using NPM npm install -g . (This adds your app to your shell's PATH)

If you would like to install completion everywhere rather than just in the current shell enter this line.

  • Add completion helper to ~/.bashrc (or ~/.zshrc) APPNAME completion >> ~/.bashrc

else if you just want to try out with it enabled in the current shell enter this line.

  • Add completion to current shell source <(pkgname completion)

Done.

##In The Wild npunch - NodeJS WebApp Development Hostbox Thing.

Add Yours

Keywords

tab

FAQs

Package last updated on 01 Sep 2013

Did you know?

Socket

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