# Functions
BuildRunSpecFromFlags creates a BuildRun spec from command-line flags.
BuildSpecFromFlags creates a BuildSpec instance based on command-line flags.
FollowFlag register the (log) follow flag, recording the value on the informed boolean pointer.
NewCoreEnvVarArrayValue instantiate a CoreEnvVarSliceValue sharing the EnvVar pointer.
NewMapValue instantiate a MapValue sharing the map.
NewStrategyKindValue creates a new instance of StrategyKindValue sharing an existing reference.
NewStringPointerValue instantiate StringPointerValue with the default pointer to string.
SanitizeBuildRunSpec checks for empty inner data structures and replaces them with nil.
SanitizeBuildSpec checks for empty inner data structures and replaces them with nil.
# Constants
BuilderCredentialsSecretFlag command-line flag.
BuilderImageFlag command-line flag.
BuildrefNameFlag command-line flag.
DockerfileFlag command-line flag.
EnvFlag command-line flag.
#nosec G101.
OutputImageAnnotationsFlag command-line flag.
OutputImageFlag command-line flag.
OutputImageLabelsFlag command-line flag.
OutputInsecure command-line flag.
RetentionFailedLimitFlag command-line flag.
RetentionSucceededLimitFlag command-line flag.
RetentionTTLAfterFailedFlag command-line flag.
RetentionTTLAfterSucceededFlag command-line flag.
ServiceAccountGenerateFlag command-line flag.
ServiceAccountNameFlag command-line flag.
SourceBundleImageFlag command-line flag.
SourceBundlePruneFlag command-line flag.
SourceContextDirFlag command-line flag.
#nosec G101.
SourceRevisionFlag command-line flag.
SourceURLFlag command-line flag.
StrategyAPIVersionFlag command-line flag.
StrategyKindFlag command-line flag.
StrategyNameFlag command-line flag.
TimeoutFlag command-line flag.
# Structs
CoreEnvVarArrayValue implements pflag.Value interface, in order to store corev1.EnvVar key-value pairs used on Shipwright's BuildSpec.
MapValue implements pflag.Value interface, in order to store key-value pairs used on Shipwright's BuildSpec which have map[string]string as field type.
StrategyKindValue implements pflag.Value interface, to represent Shipwright's BuildStrategyKind as a string command-line in an cobra.Command instance.
StringPointerValue implements pflag.Value interface, to represent a pointer to an string as a command-line flag with Cobra.