dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
25 stars 34 forks source link

Adding built-in version command, fixes #11 #64

Closed rorticus closed 8 years ago

rorticus commented 8 years ago

Adding version command. This command is built into cli core and will show the version of all the registered commands.

Usage:

$ dojo version

Example output with no commands,

There are no registered commands available.

You are currently running dojo-cli 2.0.0-pre

Example output with commands,

The currently installed groups are:

create (dojo-cli-create-app) 2.0.0-alpha.2

You are currently running dojo-cli 2.0.0-pre

What the help looks like,

dojo help

Usage: dojo <group> <command> [options]

Hey there, here are all the things you can do with dojo-cli:

Commands:
  create   Scaffolds a new command
  version  List versions of registered commands

Options:
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

For more information on any of these commands just run them with '-h'.

e.g. 'dojo run -h' will give you the help for the 'run' group of commands.
codecov-io commented 8 years ago

Current coverage is 99.38% (diff: 100%)

Merging #64 into master will increase coverage by 0.18%

@@             master        #64   diff @@
==========================================
  Files            10         11     +1   
  Lines           126        163    +37   
  Methods           0          0          
  Messages          0          0          
  Branches          9         13     +4   
==========================================
+ Hits            125        162    +37   
  Misses            1          1          
  Partials          0          0          

Powered by Codecov. Last update 0986032...c406495

agubler commented 8 years ago

Can we add some general JSDoc, especially for exported interfaces / function / types?

rorticus commented 8 years ago

@agubler says,

Can we add some general JSDoc, especially for exported interfaces / function / types?

Done!