cmd

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 36 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