Documentation
¶
Overview ¶
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Package cmd contains the CLI commands for Zarf.
Index ¶
- Constants
- Variables
- func Execute(ctx context.Context)
- func GetStringSlice(v *viper.Viper, key string) []string
- func IsVendorCmd(args []string, vendoredCmds []string) bool
- func NewZarfCommand() *cobra.Command
- func PrintFindings(ctx context.Context, lintErr *lint.LintError)
- func PrintViperConfigUsed(ctx context.Context) error
Constants ¶
const ( VArchitecture = "architecture" VZarfCache = "zarf_cache" VTmpDir = "tmp_dir" VInsecure = "insecure" VPlainHTTP = "plain_http" VInsecureSkipTLSVerify = "insecure_skip_tls_verify" VLogLevel = "log_level" VLogFormat = "log_format" VNoColor = "no_color" VFeatures = "features" VInitComponents = "init.components" VInitStorageClass = "init.storage_class" VInitGitURL = "init.git.url" VInitGitPushUser = "init.git.push_username" VInitGitPushPass = "init.git.push_password" VInitGitPullUser = "init.git.pull_username" VInitGitPullPass = "init.git.pull_password" VInitRegistryURL = "init.registry.url" VInitRegistryNodeport = "init.registry.nodeport" InjectorPort = "init.registry.injector_port" VInitRegistrySecret = "init.registry.secret" VInitRegistryPushUser = "init.registry.push_username" VInitRegistryPushPass = "init.registry.push_password" VInitRegistryPullUser = "init.registry.pull_username" VInitRegistryPullPass = "init.registry.pull_password" VInitArtifactURL = "init.artifact.url" VInitArtifactPushUser = "init.artifact.push_username" VInitArtifactPushToken = "init.artifact.push_token" VPkgOCIConcurrency = "package.oci_concurrency" VPkgPublicKey = "package.public_key" VPkgVerify = "package.verify" VPkgCreateSet = "package.create.set" VPkgCreateOutput = "package.create.output" VPkgCreateSbom = "package.create.sbom" VPkgCreateSbomOutput = "package.create.sbom_output" VPkgCreateSkipSbom = "package.create.skip_sbom" VPkgCreateMaxPackageSize = "package.create.max_package_size" VPkgCreateSigningKey = "package.create.signing_key" VPkgCreateSigningKeyPassword = "package.create.signing_key_password" VPkgCreateDifferential = "package.create.differential" VPkgCreateRegistryOverride = "package.create.registry_override" VPkgCreateFlavor = "package.create.flavor" VPkgCreateWithBuildMachineInfo = "package.create.with_build_machine_info" VPkgDeploySet = "package.deploy.set" VPkgDeployComponents = "package.deploy.components" VPkgDeployShasum = "package.deploy.shasum" VPkgDeployTimeout = "package.deploy.timeout" VPkgDeployNamespace = "package.deploy.namespace" VPkgRetries = "package.deploy.retries" VPkgDeployValues = "package.deploy.values" VPkgPublishSigningKey = "package.publish.signing_key" VPkgPublishSigningKeyPassword = "package.publish.signing_key_password" VPkgPublishRetries = "package.publish.retries" VPkgPublishWithBuildMachineInfo = "package.publish.with_build_machine_info" VPkgSignSigningKey = "package.sign.signing_key" VPkgSignSigningKeyPassword = "package.sign.signing_key_password" VPkgSignOutput = "package.sign.output" VPkgSignOverwrite = "package.sign.overwrite" VPkgPullOutputDir = "package.pull.output_directory" VDevDeployNoYolo = "dev.deploy.no_yolo" )
Constants for use when loading configurations from viper config files
Variables ¶
var ( // LogLevelCLI holds the log level as input from a command LogLevelCLI string // LogFormat holds the log format as input from a command LogFormat string // IsColorDisabled corresponds to the --no-color flag. It disables color codes in terminal output IsColorDisabled bool // OutputWriter provides a default writer to Stdout for user-facing command output OutputWriter = os.Stdout )
Functions ¶
func GetStringSlice ¶ added in v0.64.0
GetStringSlice returns a string slice from viper it consistently returns expected results across flags and environment variables https://github.com/spf13/viper/issues/380
func IsVendorCmd ¶ added in v0.47.0
IsVendorCmd checks if the command is a vendor command.
func NewZarfCommand ¶ added in v0.46.0
NewZarfCommand creates the `zarf` command and its nested children.
func PrintFindings ¶ added in v0.47.0
PrintFindings prints the findings in the LintError as a table.
func PrintViperConfigUsed ¶ added in v0.47.0
PrintViperConfigUsed informs users when Zarf has detected a config file.
Types ¶
This section is empty.