cli

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VersionCommand

func VersionCommand(info VersionInfo) *cobra.Command

Types

type Configurator

type Configurator interface {
	ConfigureCommands(rootCmd *cobra.Command) error
}

type Runner

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

func NewRunner

func NewRunner(opts *RunnerOptions) (*Runner, error)

func (*Runner) GenBashCompletionFile

func (r *Runner) GenBashCompletionFile(filename string) error

func (*Runner) GenManTree

func (r *Runner) GenManTree(dir string) error

func (*Runner) GenPowerShellCompletionFile

func (r *Runner) GenPowerShellCompletionFile(filename string) error

func (*Runner) GenZshCompletionFile

func (r *Runner) GenZshCompletionFile(filename string) error

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, args []string) error

type RunnerOptions

type RunnerOptions struct {
	VersionInfo
}

type VersionInfo

type VersionInfo struct {
	BuildDate string `json:"buildDate" yaml:"buildDate"`
	Commit    string `json:"commit" yaml:"commit"`
	Version   string `json:"version" yaml:"version"`
}

Jump to

Keyboard shortcuts

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