Class CommandBuilder
Fluent DSL for building Command objects.
Inheritance
CommandBuilder
Assembly: Petabridge.Cmd.Common.dll
Syntax
public sealed class CommandBuilder
Methods
Build()
Declaration
Returns
WithArgument(string, string)
Declaration
public CommandBuilder WithArgument(string argumentName, string argumentValue)
Parameters
| Type |
Name |
Description |
| string |
argumentName |
|
| string |
argumentValue |
|
Returns
WithCommand(string)
Declaration
public CommandBuilder WithCommand(string commandName)
Parameters
| Type |
Name |
Description |
| string |
commandName |
|
Returns
WithFlag(string)
Declaration
public CommandBuilder WithFlag(string flagName)
Parameters
| Type |
Name |
Description |
| string |
flagName |
|
Returns
WithModule(string)
Declaration
public CommandBuilder WithModule(string moduleName)
Parameters
| Type |
Name |
Description |
| string |
moduleName |
|
Returns