Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APImachineryVersion = ""
View Source
var RootCmd = &cobra.Command{ Use: "ks", Short: `Configure your application to deploy to a Kubernetes cluster`, Long: ` You can use the ` + "`ks`" + ` commands to write, share, and deploy your Kubernetes application configuration to remote clusters. ---- `, SilenceErrors: true, SilenceUsage: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { goflag.CommandLine.Parse([]string{}) flags := cmd.Flags() out := cmd.OutOrStderr() log.SetOutput(out) logFmt := &log.TextFormatter{ DisableTimestamp: true, DisableLevelTruncation: true, QuoteEmptyFields: true, } log.SetFormatter(logFmt) verbosity, err := flags.GetCount(flagVerbose) if err != nil { return err } log.SetLevel(logLevel(verbosity)) wd, err := os.Getwd() if err != nil { return err } var isInit bool if len(args) == 2 && args[0] == "init" { isInit = true } ka, err = app.Load(appFs, wd, false) if err != nil && isInit { return err } return nil }, Args: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cobra.NoArgs(cmd, args) } pluginName := args[0] _, err := plugin.Find(appFs, pluginName) if err != nil { return cobra.NoArgs(cmd, args) } return nil }, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cmd.Help() } pluginName, args := args[0], args[1:] p, err := plugin.Find(appFs, pluginName) if err != nil { return err } return runPlugin(p, args) }, }
RootCmd is the root of cobra subcommand tree
View Source
var Version = "(dev build)"
Version is overridden by main
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
- actions.go
- apply.go
- component.go
- component_list.go
- component_rm.go
- delete.go
- diff.go
- env.go
- env_add.go
- env_current.go
- env_describe.go
- env_list.go
- env_rm.go
- env_set.go
- env_targets.go
- env_update.go
- flags.go
- import.go
- init.go
- initname_string.go
- module.go
- module_create.go
- module_list.go
- param.go
- param_delete.go
- param_diff.go
- param_list.go
- param_set.go
- pkg.go
- pkg_describe.go
- pkg_install.go
- pkg_list.go
- prototype.go
- prototype_describe.go
- prototype_list.go
- prototype_preview.go
- prototype_search.go
- prototype_use.go
- registry.go
- registry_add.go
- registry_describe.go
- registry_list.go
- root.go
- show.go
- upgrade.go
- validate.go
- version.go
Click to show internal directories.
Click to hide internal directories.