Skip to content

Customizing commands

mtmk edited this page Jun 2, 2011 · 5 revisions

The following are ways in which the command can be customized:

  • Name: This is the name that the user will use to invoke the command. By default it is the hyphenated name of the class (e.g. MyCommand is invoked by using "my-command").
  • Description: This will be shown as help text for the command.

An example is as follows:

    [Command(Name = "run", Description = "Used to run the command from the command line")]
    public class MyCommand
    ...