Skip to content

Command descriptor refactoring

Vincent Peybernes edited this page Jul 8, 2013 · 1 revision

Hi,

To easily add configurations when commands are declared, we redefined the addCommand method. Now, this method take one object in parameter. The same command descriptor that used for the addCommands method.

{
  name: "command-name",
  description: "The help description of command",
  action: function(){ /* The action of the command */ }
}

In future we will add more parameters to configure the command behaviour.

Sorry for the inconvenience caused by this refactoring.

Clone this wiki locally