command

package
v0.0.0-...-6db8251 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "version 子命令.",
	Long:  "这是一个version 子命令",
	Run:   runVersion,
}

Functions

func DeploymentCmd

func DeploymentCmd() *cobra.Command

func ExitWithError

func ExitWithError(err error)

func ExitWithErrorf

func ExitWithErrorf(format string, a ...interface{})

func GeneralWrite

func GeneralWrite(fileName string, buf []byte)

func GeneratePasswordFunc

func GeneratePasswordFunc() (string, error)

func ReadEmbed

func ReadEmbed() ([]byte, error)

Types

type GlobalFlags

type GlobalFlags struct {
	Server       string
	OutputFormat string
}

GlobalFlags is the global flags for the whole client.

var CommandlineGlobalFlags GlobalFlags

Jump to

Keyboard shortcuts

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