Grafeas v1 API - Class Command (3.6.0)

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.

Inheritance

object > Command

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Constructors

Command()

public Command()

Command(Command)

public Command(Command other)
Parameter
NameDescription
otherCommand

Properties

Args

public RepeatedField<string> Args { get; }

Command-line arguments used when executing this command.

Property Value
TypeDescription
RepeatedFieldstring

Dir

public string Dir { get; set; }

Working directory (relative to project source root) used when running this command.

Property Value
TypeDescription
string

Env

public RepeatedField<string> Env { get; }

Environment variables set before running this command.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
string

WaitFor

public RepeatedField<string> WaitFor { get; }

The ID(s) of the command(s) that this command depends on.

Property Value
TypeDescription
RepeatedFieldstring