Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DocsCmd = &cobra.Command{ Hidden: true, Use: "docs", Short: "generate docs for kloudlite cli", Long: `This command let you generate docs for kloudlite cli. Example: # generate docs for kloudlite cli kl docs `, Run: func(_ *cobra.Command, args []string) { if err := clis.RunDocGen(rootCmd, args); err != nil { fn.PrintError(err) return } fn.Log("successfully generated docs/kl") }, }
View Source
var UpdateCmd = &cobra.Command{ Use: "update", Short: "Update the kl to latest version", Long: `Update the kl to latest version Example: # Update the kl to latest version kl update `, Run: func(cmd *cobra.Command, args []string) { version := "" if len(args) > 0 { version = args[0] } err := ExecUpdateCmd(version) if err != nil { fn.PrintError(err) return } fn.Log("successfully updated") }, }
Functions ¶
func ExecUpdateCmd ¶
func GetRootHelp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.