cliflag

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPersistentBoolFlag

func AddPersistentBoolFlag(c *cobra.Command, flag string, value bool, description string, isRequired bool)

AddPersistentBoolFlag adds a bool flag to the command

func AddPersistentIntFlag

func AddPersistentIntFlag(c *cobra.Command, flag string, value int, description string, isRequired bool)

AddPersistentIntFlag adds a integer flag to the command

func AddPersistentStringFlag

func AddPersistentStringFlag(c *cobra.Command, flag string, value string, description string, isRequired bool)

AddPersistentStringFlag adds a string flag to the command

Types

This section is empty.

Jump to

Keyboard shortcuts

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