Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetConfig

func GetConfig() *config.Config

GetConfig returns the loaded configuration

func GetJSON

func GetJSON() bool

GetJSON returns the JSON output flag value

func GetQuiet

func GetQuiet() bool

GetQuiet returns the quiet flag value

func GetVerbose

func GetVerbose() bool

GetVerbose returns true if verbosity level is >= 1

func GetVerbosity

func GetVerbosity() int

GetVerbosity returns the verbosity level (0=warn, 1=info, 2=debug, 3=trace)

Types

type AuthStatus

type AuthStatus struct {
	Authenticated bool   `json:"authenticated"`
	User          string `json:"user,omitempty"`
	Error         string `json:"error,omitempty"`
}

AuthStatus represents the authentication status

Jump to

Keyboard shortcuts

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