Documentation
¶
Overview ¶
Package cli builds the cobra command tree — the curated, stable UX surface.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitGeneric = 1 ExitAuthConfig = 2 ExitNotFound = 3 ExitAPIServer = 4 ExitTaskFailed = 5 ExitValidation = 6 )
Exit codes (documented contract). Scripts may rely on these.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute() int
Execute runs the root command and maps errors to exit codes. Before handing off to cobra, it checks whether the invocation targets an external plugin (pc-<name>) and, if so, dispatches to it. Built-in commands take precedence.
func ExitCodeFor ¶
ExitCodeFor maps an error to its process exit code.
Types ¶
This section is empty.
Source Files
¶
- api.go
- config.go
- console.go
- errors.go
- format.go
- guest.go
- guest_all.go
- guest_extras.go
- guest_lifecycle.go
- guest_monitor.go
- node.go
- pdm_access.go
- pdm_appliance.go
- pdm_domains.go
- pdm_pbs.go
- pdm_server.go
- pdm_subscription.go
- plugin.go
- pve_admin.go
- pve_ceph.go
- pve_firewall.go
- pve_sdn.go
- raw.go
- remote.go
- render.go
- root.go
- snapshot.go
- storage.go
- tag.go
- tag_style.go
- task.go
- util.go
- version.go
Click to show internal directories.
Click to hide internal directories.