cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedVerbs = map[string]struct{}{
	"create":    {},
	"delete":    {},
	"disable":   {},
	"edit":      {},
	"enable":    {},
	"exec":      {},
	"get":       {},
	"init":      {},
	"install":   {},
	"list":      {},
	"login":     {},
	"logout":    {},
	"run":       {},
	"set":       {},
	"show":      {},
	"status":    {},
	"sync":      {},
	"uninstall": {},
	"update":    {},
}

AllowedVerbs is the canonical set of leaf-command verbs. Every leaf command's first token must appear here. Adding an entry requires a one-line justification in the PR description per the developer guide.

Keep alphabetised.

Functions

func IsAllowedVerb

func IsAllowedVerb(v string) bool

IsAllowedVerb reports whether v is in the verb allow-list.

func NewRootCommand

func NewRootCommand(a *app.App) *cobra.Command

NewRootCommand creates the root cobra command. Persistent flags are resolved in PersistentPreRunE before any RunE fires, so domain commands can read App.Output and the resolved profile at call time.

func NewSafedep

func NewSafedep(a *app.App) *cobra.Command

NewSafedep assembles the full safedep command tree. main() and the convention tests both consume this so they walk an identical tree.

Types

This section is empty.

Directories

Path Synopsis
Package auth registers the `safedep auth` domain.
Package auth registers the `safedep auth` domain.
Package endpoint registers the `safedep endpoint` command tree, the CLI front-end for SafeDep Cloud's EndpointManagementService (Endpoint Hub).
Package endpoint registers the `safedep endpoint` command tree, the CLI front-end for SafeDep Cloud's EndpointManagementService (Endpoint Hub).
Package integration is the umbrella domain for SafeDep's third-party integrations.
Package integration is the umbrella domain for SafeDep's third-party integrations.
jfrog
internal/cmd/integration/jfrog/run.go
internal/cmd/integration/jfrog/run.go
mcp
Package query registers the `safedep query` domain.
Package query registers the `safedep query` domain.
mcp
Package version registers the `safedep version` command.
Package version registers the `safedep version` command.

Jump to

Keyboard shortcuts

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