cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionKey = "version"
	CommitKey  = "commit"
)

Variables

View Source
var ErrMissingConfig = errors.New("command missing config")

Functions

func New

func New(opts ...Option) *cobra.Command

Types

type Option added in v0.1.0

type Option func(cmd *cobra.Command)

func WithVersion added in v0.1.0

func WithVersion(version string) Option

Jump to

Keyboard shortcuts

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