cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultBasePath = "/api/v1alpha1"

Variables

This section is empty.

Functions

func Main

func Main()

func NewPrinter

func NewPrinter(format string, w io.Writer) func(any)

NewPrinter returns a function that prints in the chose format to writer.

Types

type EnumFlagValue

type EnumFlagValue struct {
	Allowed []string
	Value   string
}

EnumFlagValue is a flag value that validates its value is one of a set of allowed values.

func EnumFlag

func EnumFlag(allowed ...string) *EnumFlagValue

EnumFlag returns an enum flag value with the allowed strings. First one is the default.

func (*EnumFlagValue) Set

func (f *EnumFlagValue) Set(s string) error

func (*EnumFlagValue) String

func (f *EnumFlagValue) String() string

func (*EnumFlagValue) Type

func (f *EnumFlagValue) Type() string

Jump to

Keyboard shortcuts

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