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 when you execute the above command a link will be opened on your browser. visit your browser and approve there to access your account using this cli. `, Run: func(_ *cobra.Command, args []string) { if err := clis.RunDocGen(rootCmd, args); err != nil { fn.PrintError(err) return } fn.Log("successfully generated docs/kli") }, }
View Source
var UpdateCmd = &cobra.Command{ Hidden: true, 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, _ []string) { version := "" if cmd.Flags().Changed("version") { version, _ = cmd.Flags().GetString("version") version = fmt.Sprintf("@%s", version) } err := ExecUpdateCmd(version) if err != nil { fn.Log(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.