verbs

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 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 (
	Add       = VerbValue("add")
	Listen    = VerbValue("listen")
	Apply     = VerbValue("apply")
	Adopt     = VerbValue("adopt")
	Lint      = VerbValue("lint")
	API       = VerbValue("api")
	Get       = VerbValue("get")
	Inspect   = VerbValue("inspect")
	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")
	Roar      = VerbValue("roar")
	Uninstall = VerbValue("uninstall")
	Upgrade   = VerbValue("upgrade")
)

Variables

View Source
var Verb = VerbKey{}

Verb is a global instance of the VerbKey type

Functions

func BindFlag added in v1.7.0

func BindFlag(cfg config.Hook, flags *pflag.FlagSet, flagName, configPath string) error

BindFlag binds a flag (if present on the flag set) to the provided config path.

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