common

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const FilePrefix = "@"

Variables

View Source
var Verbose bool

Functions

func AddCommandsFromRegistry

func AddCommandsFromRegistry(rootCmd *cobra.Command, runtime runtime.Runtime, hiddenColumnTags []string)

AddCommandsFromRegistry adds all gadgets known by the registry as cobra commands as a subcommand to their categories

func AddFlags added in v0.21.0

func AddFlags(cmd *cobra.Command, params *params.Params, skipParams []params.ValueHint, runtime runtime.Runtime)

func AddVerboseFlag added in v0.18.0

func AddVerboseFlag(rootCmd *cobra.Command)

func NewLoginCmd added in v0.20.0

func NewLoginCmd() *cobra.Command

func NewLogoutCmd added in v0.20.0

func NewLogoutCmd() *cobra.Command

func NewRunCommand added in v0.27.0

func NewRunCommand(rootCmd *cobra.Command, runtime runtime.Runtime, hiddenColumnTags []string) *cobra.Command

func NewSyncCommand added in v0.21.0

func NewSyncCommand(runtime *grpcruntime.Runtime) *cobra.Command

func NewVersionCmd added in v0.21.0

func NewVersionCmd() *cobra.Command

Types

type Param added in v0.17.0

type Param struct {
	*params.Param
}

Param is a wrapper around params.Param. It's used to implement the logic that reads parameters from files.

func (*Param) Set added in v0.17.0

func (p *Param) Set(val string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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