cmd

package
v0.0.0-...-b57853f Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 81 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

Overview

Package cmd assembles the cobra command tree for the meho CLI. The root command exposes global flags consumed by every subcommand (--config, -v/--verbose); subcommand-specific behaviour lives in sibling files (version.go, login.go, status.go).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute builds the command tree and runs it, returning any error produced by the executed subcommand. The caller is responsible for translating that error into a process exit code; the error message is already on stderr. A command prints its own errors (SilenceErrors) or cobra prints them; an unknown flag or a wrong argument count is printed by installUsageErrors. SilenceUsage = true on the root suppresses the usage wall on RunE errors.

The returned error may satisfy output.ExitCoder; main inspects it to pick the process exit code (auth_expired → 2, unreachable → 3, unexpected → 4, generic → 1).

func NewRootCmdForDocs

func NewRootCmdForDocs() *cobra.Command

NewRootCmdForDocs builds the full static command tree with backplane discovery disabled, for offline documentation generation.

The shipped `meho` binary never calls this — the docgen tool under cmd/docgen does, to render docs-site/reference/cli.md from the local command set. Discovery is disabled (setDynamicRegistrar to a no-op) so generation is deterministic and needs no live backplane: the committed reference documents the built-in verbs, and a connected backplane may additionally surface discovered operations at runtime.

Types

This section is empty.

Directories

Path Synopsis
Package addon hosts the cobra commands under `meho addon ...`.
Package addon hosts the cobra commands under `meho addon ...`.
Package admin hosts the `meho admin ...` parent command tree for deployer-side provisioning verbs.
Package admin hosts the `meho admin ...` parent command tree for deployer-side provisioning verbs.
keycloak
Package keycloak hosts the cobra commands under `meho admin keycloak ...` for install-time Keycloak realm provisioning.
Package keycloak hosts the cobra commands under `meho admin keycloak ...` for install-time Keycloak realm provisioning.
tools
Package tools hosts `meho admin tools ...`: admin work on the tool logins of the people of a tenant.
Package tools hosts `meho admin tools ...`: admin work on the tool logins of the people of a tenant.
Package agent hosts the cobra commands under `meho agent ...` for G11.1-T2 (#809) of Initiative #802 (the P1 agent runtime).
Package agent hosts the cobra commands under `meho agent ...` for G11.1-T2 (#809) of Initiative #802 (the P1 agent runtime).
Package agentprincipal hosts the cobra commands under `meho agent-principal ...` for G11.2-T1 (#815) of Initiative #803 (G11.2 Agent identity + RBAC + approval).
Package agentprincipal hosts the cobra commands under `meho agent-principal ...` for G11.2-T1 (#815) of Initiative #803 (G11.2 Agent identity + RBAC + approval).
Package approvals hosts the cobra commands under `meho approvals ...` for G11.2-T5 (#818) of Initiative #803 (G11.2 Agent identity + RBAC + approval).
Package approvals hosts the cobra commands under `meho approvals ...` for G11.2-T5 (#818) of Initiative #803 (G11.2 Agent identity + RBAC + approval).
Package argocd hosts the cobra commands under `meho argocd ...` for G3.12-T3 (#1392) of Initiative #1387.
Package argocd hosts the cobra commands under `meho argocd ...` for G3.12-T3 (#1392) of Initiative #1387.
Package audit hosts the cobra commands under `meho audit ...` for G8.1-T3 (#467) of Initiative #334.
Package audit hosts the cobra commands under `meho audit ...` for G8.1-T3 (#467) of Initiative #334.
Package automation hosts the cobra commands under `meho automation ...` for Task #3029 of Initiative #2900 (the add-on pairing contract).
Package automation hosts the cobra commands under `meho automation ...` for Task #3029 of Initiative #2900 (the add-on pairing contract).
Package bind9 hosts the cobra commands under `meho bind9 ...` for G3.4-T5 (#591) of Initiative #367.
Package bind9 hosts the cobra commands under `meho bind9 ...` for G3.4-T5 (#591) of Initiative #367.
Package broadcast hosts the cobra commands under `meho broadcast ...` for G6.3-T4 (#381) of Initiative #376.
Package broadcast hosts the cobra commands under `meho broadcast ...` for G6.3-T4 (#381) of Initiative #376.
Package connector hosts the cobra commands under `meho connector ...` for the G0.7 spec-ingestion pipeline (Initiative #389).
Package connector hosts the cobra commands under `meho connector ...` for the G0.7 spec-ingestion pipeline (Initiative #389).
Package conventions hosts the cobra commands under `meho conventions ...` for G7.1-T3 (#315) of Initiative #229 (tenant conventions).
Package conventions hosts the cobra commands under `meho conventions ...` for G7.1-T3 (#315) of Initiative #229 (tenant conventions).
Package dashboard hosts the cobra commands under `meho dashboard ...` for Task #2590 of Initiative #2416 (parent goal #221, the deterministic check layer).
Package dashboard hosts the cobra commands under `meho dashboard ...` for Task #2590 of Initiative #2416 (parent goal #221, the deterministic check layer).
Package docs hosts the cobra commands under `meho docs ...` for G4.5-T5 (#1524) of Initiative #1518 (the meho-docs add-on), extended for collection-scoped search by G4.6-T3 (#1552).
Package docs hosts the cobra commands under `meho docs ...` for G4.5-T5 (#1524) of Initiative #1518 (the meho-docs add-on), extended for collection-scoped search by G4.6-T3 (#1552).
Package eventsource hosts the cobra commands under `meho event-source ...` for the event_source registry (Initiative #2877, Task #2880).
Package eventsource hosts the cobra commands under `meho event-source ...` for the event_source registry (Initiative #2877, Task #2880).
Package gcloud hosts the cobra commands under `meho gcloud ...` for G3.7-T6 (#851) of Initiative #370.
Package gcloud hosts the cobra commands under `meho gcloud ...` for G3.7-T6 (#851) of Initiative #370.
Package harbor hosts the cobra commands under `meho harbor ...` for G3.5-T10 (#622) of Initiative #368.
Package harbor hosts the cobra commands under `meho harbor ...` for G3.5-T10 (#622) of Initiative #368.
Package hetznerrobot hosts the cobra commands under `meho hetzner-robot ...` for G3.7-T9 (#852) of Initiative #370.
Package hetznerrobot hosts the cobra commands under `meho hetzner-robot ...` for G3.7-T9 (#852) of Initiative #370.
Package holodeck hosts the cobra commands under `meho holodeck ...` for G3.8-T3 (#855) of Initiative #371 (G3.8 Holodeck typed-SSH connector).
Package holodeck hosts the cobra commands under `meho holodeck ...` for G3.8-T3 (#855) of Initiative #371 (G3.8 Holodeck typed-SSH connector).
Package k8s hosts the cobra commands under `meho k8s ...` for G3.2-T6 (#326) of Initiative #320.
Package k8s hosts the cobra commands under `meho k8s ...` for G3.2-T6 (#326) of Initiative #320.
Package kb hosts the cobra commands under `meho kb ...` for G4.1-T4 (#418) of Initiative #331.
Package kb hosts the cobra commands under `meho kb ...` for G4.1-T4 (#418) of Initiative #331.
Package keycloak hosts the cobra commands under `meho keycloak ...` for G3.13-T3 (#1395) of Initiative #1388.
Package keycloak hosts the cobra commands under `meho keycloak ...` for G3.13-T3 (#1395) of Initiative #1388.
Package memory hosts the top-level cobra commands `meho remember`, `meho recall`, `meho forget`, `meho list`, and `meho promote` for G5.1-T4 (#424) + G5.2-T4 (#627) of Initiative #332.
Package memory hosts the top-level cobra commands `meho remember`, `meho recall`, `meho forget`, `meho list`, and `meho promote` for G5.1-T4 (#424) + G5.2-T4 (#627) of Initiative #332.
Package migrate hosts the cobra commands under `meho migrate ...` for G5.3-T1 (#608) of Initiative #375.
Package migrate hosts the cobra commands under `meho migrate ...` for G5.3-T1 (#608) of Initiative #375.
Package nsx hosts the cobra commands under `meho nsx ...` for G3.5-T3 (#615) of Initiative #368.
Package nsx hosts the cobra commands under `meho nsx ...` for G3.5-T3 (#615) of Initiative #368.
Package operation hosts the cobra commands under `meho operation ...` for the G0.6 substrate's three meta-tool routes (Initiative #388).
Package operation hosts the cobra commands under `meho operation ...` for the G0.6 substrate's three meta-tool routes (Initiative #388).
Package pfsense hosts the cobra commands under `meho pfsense ...` for G3.7-T3 (#850) of Initiative #370.
Package pfsense hosts the cobra commands under `meho pfsense ...` for G3.7-T3 (#850) of Initiative #370.
Package policy holds the `meho policy ...` commands.
Package policy holds the `meho policy ...` commands.
Package principal hosts the commands of `meho principal ...`: the admin block list.
Package principal hosts the commands of `meho principal ...`: the admin block list.
Package retrieval hosts the cobra commands under `meho retrieval ...`.
Package retrieval hosts the cobra commands under `meho retrieval ...`.
Package runbook hosts the cobra commands under `meho runbook ...` for G12.5-T1 (#1318) + G12.5-T2 (#1319) of Initiative #1200.
Package runbook hosts the cobra commands under `meho runbook ...` for G12.5-T1 (#1318) + G12.5-T2 (#1319) of Initiative #1200.
Package runnerprincipal hosts the cobra commands under `meho runner-principal ...` for Initiative #2415 (#2502) — the scoped per-runner service principal of the remote-execution gateway.
Package runnerprincipal hosts the cobra commands under `meho runner-principal ...` for Initiative #2415 (#2502) — the scoped per-runner service principal of the remote-execution gateway.
Package scheduler hosts the cobra commands under `meho scheduler ...` for G11.3-T5 (#826) of Initiative #804 (the P2 scheduler).
Package scheduler hosts the cobra commands under `meho scheduler ...` for G11.3-T5 (#826) of Initiative #804 (the P2 scheduler).
Package sddcmanager hosts the cobra commands under `meho sddc-manager ...` for G3.5-T6 (#618) of Initiative #368.
Package sddcmanager hosts the cobra commands under `meho sddc-manager ...` for G3.5-T6 (#618) of Initiative #368.
Package secret hosts the cobra commands under `meho secret ...` for G0.22-T4 (#1580) of Initiative #581 (the secret broker).
Package secret hosts the cobra commands under `meho secret ...` for G0.22-T4 (#1580) of Initiative #581 (the secret broker).
Package sensor hosts the cobra commands under `meho sensor ...` for Task #2503 of Initiative #2416 (parent goal #221, the deterministic check layer).
Package sensor hosts the cobra commands under `meho sensor ...` for Task #2503 of Initiative #2416 (parent goal #221, the deterministic check layer).
Package serviceprincipal hosts service-principal operator commands.
Package serviceprincipal hosts service-principal operator commands.
Package sessions hosts `meho sessions ...`: the admin commands of the agent session store (#4901).
Package sessions hosts `meho sessions ...`: the admin commands of the agent session store (#4901).
Package targets hosts the cobra commands under `meho targets ...` for Initiative #224's targets registry (G0.3-T5 / Task #256 + G0.3-T6 / Task #257).
Package targets hosts the cobra commands under `meho targets ...` for Initiative #224's targets registry (G0.3-T5 / Task #256 + G0.3-T6 / Task #257).
Package tenants hosts the cobra commands under `meho tenants ...` for the operator-plane per-tenant policy surface (#3272), and `meho tenants use` (#5241), which picks the current tenant for a login in several tenants (see use.go).
Package tenants hosts the cobra commands under `meho tenants ...` for the operator-plane per-tenant policy surface (#3272), and `meho tenants use` (#5241), which picks the current tenant for a login in several tenants (see use.go).
Package topology hosts the cobra commands under `meho topology ...` for G9.1-T6 (#454) of Initiative #363 (read/traversal verbs) and G9.2-T6 (#599) of Initiative #364 (curated-edge write + listing verbs).
Package topology hosts the cobra commands under `meho topology ...` for G9.1-T6 (#454) of Initiative #363 (read/traversal verbs) and G9.2-T6 (#599) of Initiative #364 (curated-edge write + listing verbs).
Package vault hosts the cobra commands under `meho vault ...` for G3.3-T6 (#550) of Initiative #366.
Package vault hosts the cobra commands under `meho vault ...` for G3.3-T6 (#550) of Initiative #366.
Package vcfautomation hosts the cobra commands under `meho vcf-automation ...` for G3.6-T12 (#840) of Initiative #369.
Package vcfautomation hosts the cobra commands under `meho vcf-automation ...` for G3.6-T12 (#840) of Initiative #369.
Package vcffleet hosts the cobra commands under `meho vcf-fleet ...` for G3.6-T9 (#839) of Initiative #369.
Package vcffleet hosts the cobra commands under `meho vcf-fleet ...` for G3.6-T9 (#839) of Initiative #369.
Package vcflogs hosts the cobra commands under `meho vcf-logs ...` for G3.6-T6 (#838) of Initiative #369.
Package vcflogs hosts the cobra commands under `meho vcf-logs ...` for G3.6-T6 (#838) of Initiative #369.
Package vcfoperations hosts the cobra commands under `meho vcf-operations ...` for G3.6-T3 (#837) of Initiative #369.
Package vcfoperations hosts the cobra commands under `meho vcf-operations ...` for G3.6-T3 (#837) of Initiative #369.
Package vmware hosts the cobra commands under `meho vmware ...` for G3.1-T7 (#511) of Initiative #227.
Package vmware hosts the cobra commands under `meho vmware ...` for G3.1-T7 (#511) of Initiative #227.
Package workref holds the --filter-work-ref helper for the read commands that list rows by change-ticket reference (audit query, approvals list, scheduler list, runbook runs, agent run-list, broadcast recent).
Package workref holds the --filter-work-ref helper for the read commands that list rows by change-ticket reference (audit query, approvals list, scheduler list, runbook runs, agent run-list, broadcast recent).

Jump to

Keyboard shortcuts

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