kl

package
v1.1.6-nightly Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

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 ExecUpdateCmd(version string) error

func Execute

func Execute()

func GetRootHelp

func GetRootHelp(cmd *cobra.Command) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL