Documentation
¶
Index ¶
- Constants
- func AddFlags(cmd *cobra.Command)
- func FlagToEnvVarName(f *pflag.Flag) string
- func NewCmdApply() *cobra.Command
- func NewCmdBuild() *cobra.Command
- func NewCmdCompletion() *cobra.Command
- func NewCmdConfig() *cobra.Command
- func NewCmdCredits() *cobra.Command
- func NewCmdDebug() *cobra.Command
- func NewCmdDelete() *cobra.Command
- func NewCmdDeploy() *cobra.Command
- func NewCmdDev() *cobra.Command
- func NewCmdDiagnose() *cobra.Command
- func NewCmdFilter() *cobra.Command
- func NewCmdFindConfigs() *cobra.Command
- func NewCmdFix() *cobra.Command
- func NewCmdGeneratePipeline() *cobra.Command
- func NewCmdInit() *cobra.Command
- func NewCmdInspect() *cobra.Command
- func NewCmdList() *cobra.Command
- func NewCmdOptions() *cobra.Command
- func NewCmdRender() *cobra.Command
- func NewCmdRun() *cobra.Command
- func NewCmdSchema() *cobra.Command
- func NewCmdSchemaGet() *cobra.Command
- func NewCmdSchemaList() *cobra.Command
- func NewCmdSet() *cobra.Command
- func NewCmdSurvey() *cobra.Command
- func NewCmdTest() *cobra.Command
- func NewCmdUnset() *cobra.Command
- func NewCmdVersion() *cobra.Command
- func NewSkaffoldCommand(out, errOut io.Writer) *cobra.Command
- func ResetFlagDefaults(cmd *cobra.Command, flags []*Flag)
- type Builder
- type DefaultRepoFn
- type Flag
- type Nillable
Constants ¶
const (
HouseKeepingMessagesAllowedAnnotation = "skaffold_annotation_housekeeping_allowed"
)
Annotation for commands that should allow post execution housekeeping messages like updates and surveys
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶ added in v0.30.0
AddFlags adds to the command the common flags that are annotated with the command name.
func FlagToEnvVarName ¶ added in v0.20.0
func NewCmdApply ¶ added in v1.21.0
NewCmdApply describes the CLI command to apply manifests to a cluster.
func NewCmdBuild ¶ added in v0.6.0
NewCmdBuild describes the CLI command to build artifacts.
func NewCmdCompletion ¶ added in v0.4.0
NewCmdCompletion returns the cobra command that outputs shell completion code
func NewCmdConfig ¶ added in v0.13.0
func NewCmdCredits ¶ added in v1.0.0
func NewCmdDebug ¶ added in v0.26.0
NewCmdDebug describes the CLI command to run a pipeline in debug mode. Unlike `dev`, `debug` defaults `auto-build` and `auto-deploy` to `false`.
func NewCmdDelete ¶ added in v0.7.0
NewCmdDelete describes the CLI command to delete deployed resources.
func NewCmdDeploy ¶ added in v0.7.0
NewCmdDeploy describes the CLI command to deploy artifacts.
func NewCmdDiagnose ¶ added in v0.16.0
NewCmdDiagnose describes the CLI command to diagnose skaffold.
func NewCmdFilter ¶ added in v1.7.1
NewCmdFilter describes the CLI command to filter and transform a set of Kubernetes manifests.
func NewCmdFindConfigs ¶ added in v0.32.0
NewCmdFindConfigs list the skaffold config files in the specified directory.
func NewCmdGeneratePipeline ¶ added in v0.36.0
func NewCmdInit ¶ added in v0.14.0
NewCmdInit describes the CLI command to generate a Skaffold configuration.
func NewCmdInspect ¶ added in v1.24.0
func NewCmdList ¶ added in v0.31.0
func NewCmdOptions ¶ added in v0.34.0
func NewCmdRender ¶ added in v0.39.0
NewCmdRender describes the CLI command to build artifacts render Kubernetes manifests.
func NewCmdSchema ¶ added in v1.1.0
func NewCmdSchemaGet ¶ added in v1.1.0
func NewCmdSchemaList ¶ added in v1.1.0
func NewCmdSurvey ¶ added in v1.7.1
func NewCmdTest ¶ added in v1.18.0
NewCmdTest describes the CLI command to test artifacts.
func NewCmdUnset ¶ added in v0.31.0
func NewCmdVersion ¶
func ResetFlagDefaults ¶ added in v1.21.0
Types ¶
type Builder ¶ added in v0.31.0
type Builder interface { WithArgs(cobra.PositionalArgs, func(context.Context, io.Writer, []string) error) *cobra.Command WithDescription(description string) Builder WithLongDescription(long string) Builder WithExample(comment, command string) Builder WithFlagAdder(adder func(*pflag.FlagSet)) Builder WithFlags([]*Flag) Builder WithHouseKeepingMessages() Builder WithCommonFlags() Builder Hidden() Builder ExactArgs(argCount int, action func(context.Context, io.Writer, []string) error) *cobra.Command NoArgs(action func(context.Context, io.Writer) error) *cobra.Command WithCommands(cmds ...*cobra.Command) *cobra.Command WithPersistentFlagAdder(adder func(*pflag.FlagSet)) Builder }
Builder is used to build cobra commands.
type DefaultRepoFn ¶ added in v1.21.0
DefaultRepoFn takes an image tag and returns either a new tag with the default repo prefixed, or the original tag if no default repo is specified.
type Flag ¶ added in v0.30.0
type Flag struct { Name string Shorthand string Usage string Value interface{} DefValue interface{} DefValuePerCommand map[string]interface{} DeprecatedPerCommand map[string]interface{} NoOptDefVal string FlagAddMethod string Deprecated string DefinedOn []string Hidden bool IsEnum bool }
Flag defines a Skaffold CLI flag which contains a list of subcommands the flag belongs to in `DefinedOn` field. See https://pkg.go.dev/github.com/spf13/pflag#Flag
Source Files
¶
- apply.go
- build.go
- cmd.go
- commands.go
- completion.go
- config.go
- credits.go
- debug.go
- delete.go
- deploy.go
- dev.go
- diagnose.go
- filter.go
- find_configs.go
- fix.go
- flags.go
- generate_pipeline.go
- init.go
- inspect.go
- inspect_build_env.go
- inspect_modules.go
- inspect_profiles.go
- render.go
- run.go
- runner.go
- schema.go
- survey.go
- test.go
- util.go
- version.go