flags

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKey added in v0.1.7

func GetAPIKey() string

func GetDebugMode

func GetDebugMode() bool

func GetOutputFormat added in v0.1.16

func GetOutputFormat() utils.Format

func GetProjectOrFail added in v1.0.0

func GetProjectOrFail() string

func Init

func Init(rootCmd *cobra.Command) error

Init initializes global flags for the CLI.

func InitAndBindFormatFlag added in v1.0.1

func InitAndBindFormatFlag(cmd *cobra.Command) error

InitAndBindFormatFlag initializes and binds the format flag to the provided command.

Types

type FlagConfig

type FlagConfig struct {
	DebugMode bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳