Coder Social home page Coder Social logo

generator-commander's Introduction

generator-commander Build Status NPM version

A CLI generator for Yeoman.

This generator will create a Commander.js based command line application using yo with options to include autocmdr components.

Installation

Install Yeoman if you haven't done so already.

$ npm install -g yo

To install generator-commander:

$ npm install -g generator-commander

Usage

At the command-line, cd into an empty directory, run this command and initiate the app generator:

$ yo commander

This will generate files in the current working directory for a Commander.js based application.

To create a commander.js command-component initiate the command generator:

$ yo commander:command <name>

This will create a new file in cmds/ directory of the current working directory. This file can be included in your application by adding

require('../cmds/<name>.js')(program);

to your application in the bin directory; or optionally install the autocmdr components for auto-loading cmds.

autocmdr and generator-commander

autocmdr and generator-commander are brothers. autcmdr is a command line tool for running commands (commands in a commander.js command-component) and a set of libraries for enhancing command line applications. generator-commander is a tool for scaffolding commander.js command-components and command line applications.

Calling autocmdr from a shell will load commands located in the current working directory's cmds/ folder. New commands can be added to any directory by invoking yo commander:command <name>. When running yo commander you are given the option of including autocmdr components in your application. See the autocmdr readme for a complete workflow and explanation of the available components.

What is Yeoman?

If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.

License

MIT License

Copyright (c) 2013 J. Harshbarger Gittip donate button Paypal donate button

generator-commander's People

Contributors

hypercubed avatar mathrobin avatar tgrrtt avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.