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

cmd

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Verbosity added in v0.19.0

type Verbosity struct {
	// contains filtered or unexported fields
}

This is a helper structure that allows us to have the flags `--log-level` as well as `-v`, which is equivalent to `--log-level debug`.

func (*Verbosity) Debug added in v0.19.0

func (v *Verbosity) Debug() bool

Print debug information.

func (*Verbosity) InitFlags added in v0.19.0

func (v *Verbosity) InitFlags(flags *pflag.FlagSet)

Initialize flags.

func (*Verbosity) LogLevel added in v0.19.0

func (v *Verbosity) LogLevel() zerolog.Level

Get corresponding log level.

Jump to

Keyboard shortcuts

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