cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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

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

func (v *Verbosity) Debug() bool

Print debug information.

func (*Verbosity) InitFlags

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

Initialize flags.

func (*Verbosity) LogLevel

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