verbs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add       = VerbValue("add")
	Listen    = VerbValue("listen")
	Apply     = VerbValue("apply")
	Adopt     = VerbValue("adopt")
	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")
	Install   = VerbValue("install")
	Link      = VerbValue("link")
	Logout    = VerbValue("logout")
	Plan      = VerbValue("plan")
	View      = VerbValue("view")
	Sync      = VerbValue("sync")
	Diff      = VerbValue("diff")
	Export    = VerbValue("export")
	Patch     = VerbValue("patch")
	Explain   = VerbValue("explain")
	Scaffold  = VerbValue("scaffold")
	Uninstall = VerbValue("uninstall")
	Upgrade   = VerbValue("upgrade")
)

Variables

View Source
var Verb = VerbKey{}

Verb is a global instance of the VerbKey type

Functions

func KonnectFirstPreRunE added in v1.0.0

func KonnectFirstPreRunE(verb VerbValue, konnectCmd *cobra.Command) func(*cobra.Command, []string) error

KonnectFirstPreRunE returns a PersistentPreRunE that stamps the verb onto the context and delegates to the konnect command's own PersistentPreRunE.

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

Jump to

Keyboard shortcuts

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