public sealed class Command : IMessage<Command>, IEquatable<Command>, IDeepCloneable<Command>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class Command.
Command describes a step performed as part of the build pipeline.
Namespace
GrafeasV1Assembly
Grafeas.V1.dll
Constructors
Command()
public Command()
Command(Command)
public Command(Command other)
Parameter | |
---|---|
Name | Description |
other | Command |
Properties
Args
public RepeatedField<string> Args { get; }
Command-line arguments used when executing this command.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Dir
public string Dir { get; set; }
Working directory (relative to project source root) used when running this command.
Property Value | |
---|---|
Type | Description |
string |
Env
public RepeatedField<string> Env { get; }
Environment variables set before running this command.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Id
public string Id { get; set; }
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
Property Value | |
---|---|
Type | Description |
string |
Name
public string Name { get; set; }
Required. Name of the command, as presented on the command line, or if the
command is packaged as a Docker container, as presented to docker pull
.
Property Value | |
---|---|
Type | Description |
string |
WaitFor
public RepeatedField<string> WaitFor { get; }
The ID(s) of the command(s) that this command depends on.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |