flag

package
v0.0.0-...-f954743 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFlagErr

func HandleFlagErr(err error, flag Flag)

func HandleFlagErrAndVal

func HandleFlagErrAndVal(err error, flag Flag, flagVal string)

func MarkAllFlagsRequired

func MarkAllFlagsRequired(cmd *cobra.Command)

func MarkFlagsRequired

func MarkFlagsRequired(cmd *cobra.Command, flags ...Flag)

Types

type EnvVar

type EnvVar string

type Flag

type Flag string
const (
	Copy      Flag = "copy"
	Debug     Flag = "debug"
	Email     Flag = "email"
	Host      Flag = "host"
	Name      Flag = "name"
	OutFile   Flag = "out-file"
	Show      Flag = "show"
	SshKey    Flag = "ssh-key"
	Username  Flag = "username"
	Val       Flag = "val"
	Workspace Flag = "workspace"
)

Jump to

Keyboard shortcuts

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