cmd

package
v0.0.0-...-2e7f5ff Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name        = "gohub"
	PackagePath = "github.com/erda-project/erda-infra"
)

common value

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   Name,
	Short: Name,
	Long: `The ` + Name + ` is CLI tools for erda-infra. 
Complete documentation is available at https://` + PackagePath + ` .`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Usage()
		os.Exit(1)
	},
}

RootCmd .

Functions

func AddCommand

func AddCommand(cmd *cobra.Command)

AddCommand .

func CheckError

func CheckError(err error)

CheckError .

func Confirm

func Confirm(msg string) bool

Confirm .

func Execute

func Execute()

Execute .

func IsFileExist

func IsFileExist(path string) bool

IsFileExist .

func Verbose

func Verbose() bool

Verbose .

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