cmd

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "kit v1.0.4"

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "kit",
	Short: "Go-Kit CLI",
	Run: func(cmd *cobra.Command, args []string) {
		if viper.GetBool("gk_version") {
			fmt.Fprintln(os.Stdout, Version)
			return
		}
		cmd.Help()
	},
}

RootCmd is the root command of kit

Functions

func Execute

func Execute()

Execute runs the root command

Types

This section is empty.

Jump to

Keyboard shortcuts

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