Show / Hide Table of Contents

Class CommandBuilder

Fluent DSL for building Command objects.

Inheritance
object
CommandBuilder
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Petabridge.Cmd
Assembly: Petabridge.Cmd.Common.dll
Syntax
public sealed class CommandBuilder

Methods

Build()

Declaration
public Command Build()
Returns
Type Description
Command

WithArgument(string, string)

Declaration
public CommandBuilder WithArgument(string argumentName, string argumentValue)
Parameters
Type Name Description
string argumentName
string argumentValue
Returns
Type Description
CommandBuilder

WithCommand(string)

Declaration
public CommandBuilder WithCommand(string commandName)
Parameters
Type Name Description
string commandName
Returns
Type Description
CommandBuilder

WithFlag(string)

Declaration
public CommandBuilder WithFlag(string flagName)
Parameters
Type Name Description
string flagName
Returns
Type Description
CommandBuilder

WithModule(string)

Declaration
public CommandBuilder WithModule(string moduleName)
Parameters
Type Name Description
string moduleName
Returns
Type Description
CommandBuilder
In this article
Back to top Generated by DocFX