Lines Matching full:command

18 …e option must have a value after parsing, which usually means it must be specified on command line.
30 interface Command { interface
35 commands: Command[];
48 * Define a command, implemented using an action handler.
51 * The command description is supplied using `.description`, not as a parameter to `.command`.
56 * .command('clone <source> [destination]')
59 * console.log('clone command called');
63 …* @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last…
65 * @returns new command
67 command(nameAndArgs: string, opts?: CommandOptions): ReturnType<this['createCommand']>; method
69 * Define a command, implemented in a separate executable file.
72 * The command description is supplied as the second parameter to `.command`.
77 * .command('start <service>', 'start named service')
78 * .command('stop [service]', 'stop named serice, or all if no name supplied');
81 …* @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last…
82 * @param description - description of executable command
84 * @returns `this` command for chaining
86command(nameAndArgs: string, description: string, opts?: commander.ExecutableCommandOptions): this; method
89 * Factory routine to create a new unattached command.
91 * See .command() for creating an attached subcommand, which uses this routine to
92 * create the command. You can override createCommand to customise subcommands.
94 createCommand(name?: string): Command;
99 * See .command() for creating an attached subcommand which inherits settings from its parent.
101 * @returns `this` command for chaining
103 addCommand(cmd: Command, opts?: CommandOptions): this;
106 * Define argument syntax for command.
108 * @returns `this` command for chaining
118 * Register callback `fn` for the command.
122 * .command('help')
128 * @returns `this` command for chaining
172 * @returns `this` command for chaining
180 * the option must be specified on the command line. (Otherwise the same as .option().)
189 * Whether to store option values as properties on command object,
192 * @returns `this` command for chaining
197 * Whether to pass command to action handler,
200 * @returns `this` command for chaining
205 * Allow unknown options on the command line.
208 * @returns `this` command for chaining
224 * @returns `this` command for chaining
267 * @returns `this` command for chaining
276 * Set an alias for the command.
280 * @returns `this` command for chaining
284 * Get alias for the command.
289 * Set aliases for the command.
293 * @returns `this` command for chaining
297 * Get aliases for the command.
302 * Set the command usage.
304 * @returns `this` command for chaining
308 * Get the command usage.
313 * Set the name of the command.
315 * @returns `this` command for chaining
319 * Get the name of the command.
324 * Output help information for this command.
332 * Return command help documentation.
338 * flags and help description for your command.
358 type CommandConstructor = new (name?: string) => Command;
374 interface CommanderStatic extends Command {
375 program: Command;
376 Command: CommandConstructor; property