Class CommandArg
Represents a command argument, which corresponds to a specific target to be executed.
public sealed record CommandArg : IArg
- Inheritance
-
objectCommandArg
- Implements
Examples
For the command atom MyTarget, a CommandArg with Name = "MyTarget" is created.
Remarks
The Name must correspond to a target defined in the
IBuildDefinition.
Constructors
CommandArg(string)
Represents a command argument, which corresponds to a specific target to be executed.
public CommandArg(string Name)
Parameters
NamestringThe name of the build target to execute. This is case-insensitive.
Examples
For the command atom MyTarget, a CommandArg with Name = "MyTarget" is created.
Remarks
The Name must correspond to a target defined in the
IBuildDefinition.
Properties
Name
The name of the build target to execute. This is case-insensitive.
public string Name { get; init; }
Property Value
- string