cli

package
v0.0.0-...-97a9278 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "(unknown)"

Version holds the version of the project. This must be set during build time.

Functions

func NewCmdVersion

func NewCmdVersion() *cobra.Command

NewCmdVersion creates a cobra command to print the version.

Types

type CommonOptions

type CommonOptions struct {
	LogLevel int
}

CommonOptions represents all common options used in a run command CLI.

func (*CommonOptions) SetCommonFlags

func (co *CommonOptions) SetCommonFlags(cmd *cobra.Command)

SetCommonFlags sets the flags for the common options used in a run command CLI.

Jump to

Keyboard shortcuts

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