Documentation
¶
Overview ¶
Package cmd is where the commands for cargoship
Index ¶
- Constants
- Variables
- func Distro(s string) (distrocfg.Distro, error)
- func Execute(ctx context.Context) error
- func GetStringSlice(v *viper.Viper, key string) []string
- func NewCargoshipCommand() *cobra.Command
- func PrintFindings(ctx context.Context, lintErr *lint.LintError)
- func PrintViperConfigUsed(ctx context.Context) error
- type InstallCommon
Constants ¶
View Source
const ( // InstallApplyConfig flag InstallApplyConfig = "config" // InstallApplyConfirm flag InstallApplyConfirm = "confirm" // InstallApplyConcurrency flag InstallApplyConcurrency = "concurrency" // InstallApplyWorkConcurrency flag InstallApplyWorkConcurrency = "work-concurrency" // InstallApplyUpdateHost flag InstallApplyUpdateHost = "update-hosts" // InstallApplyUpdateFirewall flag InstallApplyUpdateFirewall = "update-firewall" // InstallApplyUpdateFAPolicyD flag InstallApplyUpdateFAPolicyD = "update-fapolicyd" )
View Source
const ( // InstallKubeConfig flag InstallKubeConfig = "config" // InstallKubeConfirm flag InstallKubeConfirm = "confirm" // InstallKubeDistro flag InstallKubeDistro = "distro" )
View Source
const ( // InstallResetConfig flag InstallResetConfig = "config" // InstallResetConfirm flag InstallResetConfirm = "confirm" // InstallResetDistro flag InstallResetDistro = "distro" // InstallResetConcurrency flag InstallResetConcurrency = "concurrency" // InstallResetWorkConcurrency flag InstallResetWorkConcurrency = "work-concurrency" // InstallResetUpdateHost flag InstallResetUpdateHost = "update-hosts" // InstallResetUpdateFirewall flag InstallResetUpdateFirewall = "update-firewall" // InstallResetUpdateFAPolicyD flag InstallResetUpdateFAPolicyD = "update-fapolicyd" )
View Source
const ( // RootLoggingLevel command flag log level RootLoggingLevel = "log-level" // RootLoggingFormat command flag log format RootLoggingFormat = "log-format" // RootTimeout command flag timeout RootTimeout = "timeout" )
Variables ¶
View Source
var ( // IsColorDisabled whether to show the colored output IsColorDisabled bool // LogFormat format of the log output LogFormat string // LogLevelCLI log level LogLevelCLI string // Timeout for how long a task runs Timeout string )
View Source
var ( // OutputWriter provides a default writer to Stdout for user-facing command output OutputWriter = os.Stdout )
Functions ¶
func GetStringSlice ¶ added in v0.3.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 NewCargoshipCommand ¶
NewCargoshipCommand is the root command
func PrintFindings ¶ added in v0.3.0
PrintFindings prints the findings in the LintError as a table.
func PrintViperConfigUsed ¶
PrintViperConfigUsed informs users when Zarf has detected a config file.
Types ¶
type InstallCommon ¶
type InstallCommon struct {
LogFormat string
// contains filtered or unexported fields
}
InstallCommon common args
Click to show internal directories.
Click to hide internal directories.