cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "hyperops",
	Short: "hyperops ops commandline tool",
	Long:  "hyperops ops commandline tool for dev and ops",
	Run: func(cmd *cobra.Command, args []string) {
	},
}

RootCmd base command

Functions

func BindViper

func BindViper(flags *pflag.FlagSet, names ...string)

BindViper 请求参数绑定到全局对象viper上

func Execute

func Execute()

Execute 执行入口

func ExecuteApply

func ExecuteApply(target *ops.Target, jobFile string, jobName string, jobId string, jobTags string, timeout int, ctxMap map[string]interface{})

func Repl

func Repl()

Types

This section is empty.

Jump to

Keyboard shortcuts

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