flags

package
v1.307.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 1 Imported by: 13

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 IsSet added in v1.185.0

func IsSet(b *bool) bool

IsSet 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