flags

package
v1.331.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 1 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool() *bool

Bool for cmd.

func BoolVar

func BoolVar(cmd *cobra.Command, p *bool, name, shorthand string, value bool, usage string)

BoolVar for cmd.

func IsBoolSet added in v1.327.0

func IsBoolSet(b *bool) bool

IsBoolSet the flag for cmd.

func IsStringSet added in v1.327.0

func IsStringSet(s *string) bool

IsStringSet the flag for cmd.

func String

func String() *string

String for cmd.

func StringVar

func StringVar(cmd *cobra.Command, p *string, name, shorthand string, value string, usage string)

StringVar for cmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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