verbs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add    = VerbValue("add")
	Listen = VerbValue("listen")
	Apply  = VerbValue("apply")
	Adopt  = VerbValue("adopt")
	Kai    = VerbValue("kai")
	Lint   = VerbValue("lint")
	API    = VerbValue("api")
	Get    = VerbValue("get")
	Create = VerbValue("create")
	Dump   = VerbValue("dump")
	Update = VerbValue("update")
	Delete = VerbValue("delete")
	Help   = VerbValue("help")
	List   = VerbValue("list")
	Login  = VerbValue("login")
	Logout = VerbValue("logout")
	Plan   = VerbValue("plan")
	View   = VerbValue("view")
	Sync   = VerbValue("sync")
	Diff   = VerbValue("diff")
	Export = VerbValue("export")
	Patch  = VerbValue("patch")
)

Variables

View Source
var Verb = VerbKey{}

Verb is a global instance of the VerbKey type

Functions

func NoPositionalArgs added in v0.5.0

func NoPositionalArgs(_ *cobra.Command, args []string) error

NoPositionalArgs returns an Args validator that rejects positional arguments with a helpful message directing users to use the -f/--filename flag instead. Use this for commands (e.g. plan, diff, sync) that accept input only via flags.

Types

type VerbKey

type VerbKey struct{}

Empty type to represent the _type_ Verb. Genesis is to support a key in a Context

type VerbValue

type VerbValue string

Will represent a specific Verb (get, create, update, delete, etc)

func (VerbValue) String

func (v VerbValue) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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