Class CommandDefinitionBuilder
Fluent DSL for creating new CommandDefinitions.
Inheritance
System.Object
CommandDefinitionBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Petabridge.Cmd
Assembly: cs.temp.dll.dll
Syntax
public sealed class CommandDefinitionBuilder
Methods
Build()
Declaration
public CommandDefinition Build()
Returns
Type | Description |
---|---|
CommandDefinition |
WithArgument(Action<ArgumentDefinitionBuilder>)
Declaration
public CommandDefinitionBuilder WithArgument(Action<ArgumentDefinitionBuilder> b)
Parameters
Type | Name | Description |
---|---|---|
Action<ArgumentDefinitionBuilder> | b |
Returns
Type | Description |
---|---|
CommandDefinitionBuilder |
WithDescription(String)
Declaration
public CommandDefinitionBuilder WithDescription(string description)
Parameters
Type | Name | Description |
---|---|---|
System.String | description |
Returns
Type | Description |
---|---|
CommandDefinitionBuilder |
WithName(String)
Declaration
public CommandDefinitionBuilder WithName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
CommandDefinitionBuilder |