Skip to content

Plugin for Vorpal that run defined command if no commands where specified previously

License

Notifications You must be signed in to change notification settings

ialpert/vorpal-as-default

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vorpal-as-default

Commitizen friendly Code Climate Test Coverage Issue Count

Proposal

This plugin is useful to trigger Vorpal task in case it runs without any specificly defined task. For instance you can use it to bootstrap your application or do initial setup.

Installation

$ npm install vorpal-as-default --save

Usage

import Vorpal from 'vorpal';
import asDefault from 'vorpal-as-default'

const vorpal = Vorpal();

vorpal
    .command('setup')
    .action(function (args, next) {
      this.log('setup task');
      next();
    });


vorpal
  .show()
  .parse(process.argv)
  .use(asDefault, 'setup');

About

Plugin for Vorpal that run defined command if no commands where specified previously

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published