cmd

package
v0.0.0-...-1407253 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print version",
	Run: func(cmd *cobra.Command, args []string) {
		v := version.New()
		content, err := json.Marshal(v)
		if err != nil {
			fmt.Printf("Cannot get version information: %v\n", err)
			return
		}
		fmt.Printf("%s\n", string(content))
	},
}

VersionCmd version command

Functions

func Exec

func Exec()

Exec excute root command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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