You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

commular-test

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commular-test

A module test for commular

0.1.4
latest
npmnpm
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

commular-test

NPM Version Build Status

A commular module to show how commular can be developed and tested easily.

Getting Started

This plugin requires Commular ~0.3.2

If you haven't used Commular before, be sure to check out the documentation

npm install commular-test --save-dev

The "commular-test" task

Overview

This is a dummy Commular module to be used as a template for the rest of real modules.

API

  • A commular module requires to export a command function that receives as argument the program/commander object.

Example:

exports.command = function(program) {
  program
    .command('setup [env]')
    .description('run setup commands for all envs')
    .option("-s, --setup_mode [mode]", "Which setup mode to use")
    .action(function(env, options){
      var mode = options.setup_mode || "normal";
      env = env || 'all';
      console.log('setup for %s env(s) with %s mode', env, mode);
    });
};

Keywords

test

FAQs

Package last updated on 14 Jun 2016

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