cli

module
v0.0.0-...-bcda716 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0

README

meho CLI

The operator-facing command-line client for the MEHO governance backplane. Single static Go binary, multi-platform. Ships version, login, and status today; post-Goal-2 operations are server-driven (manifest fetched at startup — see Server-driven discovery below).

This directory holds the Go module; the Python backplane lives at ../backend/ and the Helm chart at ../deploy/charts/meho/.

Profiles: more than one login at once

A profile is a named login. Use profiles when one person must act as two identities, for example an initiator who starts a write that waits for approval, and an approver who decides it. Each profile keeps its own login, so you do not log in again each time you switch.

# Once for each identity (enter the printed code in a browser and sign in as that person):
meho login https://meho.example.com --profile initiator
meho login https://meho.example.com --profile approver

# Park the write as the initiator:
meho --profile initiator operation call ...

# Decide it as the approver:
meho --profile approver approvals approve <approval-id>
# The browser sign-in that `approvals approve` and `approvals runs
# approve` ask for decides who approves; it does not use the profile.
# Every other approvals command uses the stored login of the active
# profile: `list`, `show`, `reject`, `withdraw`, `result`,
# `mark-checked`, `runs list`, `runs show` and `runs revoke`. A reject
# needs no new sign-in, so it is decided as the profile's identity.

# Or set the profile for a whole shell:
export MEHO_PROFILE=approver
meho status          # first line: "Profile: approver"
  • --profile <name> beats MEHO_PROFILE. With neither, the CLI uses the default profile: the login that meho login made before profiles existed. Nothing changes for you if you do not use them.
  • A profile name has letters, digits, ., - and _ (up to 64 characters, starting with a letter or digit).
  • All profiles live under the same config home, in the same keyring or the same 0600 credentials file. This replaces the old workaround of one XDG_CONFIG_HOME for each identity.
  • A profile that never logged in has no login. The CLI does not use another profile's login in its place.
  • meho status prints Profile: <name> first when a named profile is active, then the identity with its sub.
  • When a login is missing or expired, the error tells you to run meho --profile <name> login <url>, for the profile you used.
  • The backplane URL (config.json) and the tenant chosen with meho tenants use are shared by all profiles. So meho login <url> --profile <name> with another URL changes the URL for every profile and clears the chosen tenant. The login prints one line when this happens.
  • meho doctor checks the profile you asked for, in all its checks, and prints Profile: <name> first when it is a named profile.

Status

G2.6-T5 — multi-platform, cosign-signed release pipeline via GoReleaser. Every release artefact (four tarballs + SHA256SUMS) ships with a matching .cosign.bundle sigstore bundle on the GitHub Release. The verification recipe lives in the Release section below.

Layout

cli/
├── go.mod                          # module github.com/evoila/meho/cli
├── Makefile                        # build / test / lint / install / generate / snapshot
├── .golangci.yml                   # linter config (errcheck, govet, staticcheck, revive, ...)
├── api/
│   ├── openapi.json                # OpenAPI 3.0 snapshot of the backplane (input to oapi-codegen)
│   ├── oapi.config.yaml            # oapi-codegen v2 generation config
│   └── snapshot-openapi.py         # FastAPI app → openapi.json 3.0 downgrade helper
├── cmd/
│   └── meho/
│       └── main.go                 # entry point; calls internal/cmd.Execute()
└── internal/
    ├── api/
    │   ├── client.gen.go           # generated typed client (oapi-codegen v2.5)
    │   ├── client.go               # auth-aware wrapper around the generated client
    │   └── refresh.go              # lazy 401-retry refresh path
    ├── auth/
    │   ├── devicecode.go           # OIDC discovery + x/oauth2 device flow
    │   ├── store.go                # TokenStore interface, keyring & file backends
    │   └── config.go               # backplane-URL config file ($XDG_CONFIG_HOME/meho/config.json)
    ├── cmd/
    │   ├── root.go                 # cobra root + dynamic-discovery hook
    │   ├── version.go              # `meho version` subcommand
    │   ├── login.go                # `meho login <backplane-url>` subcommand
    │   └── status.go               # `meho status` subcommand + --json
    ├── discovery/
    │   └── discovery.go            # server-driven subcommand manifest fetcher
    ├── output/
    │   └── format.go               # human + JSON formatters + structured exit codes
    └── version/
        └── version.go              # build-time identity (ldflags-injected)

internal/ is Go's package-visibility seal: nothing outside cli/ can import these packages, which keeps the CLI's surface free for unrestrained refactoring.

Build

cd cli/
make build          # produces bin/meho with VERSION=dev
./bin/meho version  # meho dev (commit <short-sha>, built <utc-timestamp>)

Release-style build with injected version metadata:

make build VERSION=v0.1.0 COMMIT=$(git rev-parse --short HEAD)
./bin/meho version
# meho v0.1.0 (commit <short-sha>, built 2026-05-10T...Z)

The Makefile also exposes the convenience target from the repo root (make cli delegates here).

Login

./bin/meho login https://meho.example.com
# ...prints a verification URL + user_code; open the URL on any
# device with a browser, enter the user_code, sign in and approve.
# No browser opens on this machine and nothing is sent back to the
# CLI: it waits and sees the login by itself.

Tokens persist to the OS keyring by default (Keychain on macOS, Secret Service on Linux, Wincred on Windows). On headless hosts without a keyring service the CLI falls back to $XDG_CONFIG_HOME/meho/credentials.json (default ~/.config/meho/credentials.json) created mode 0600. Set MEHO_KEYRING_DISABLE=1 to force the file backend explicitly.

The backplane URL is also persisted (unauthenticated) at $XDG_CONFIG_HOME/meho/config.json so subsequent subcommands like meho status recover it without retyping.

If the backplane hasn't yet shipped its /api/v1/auth-config endpoint (G2.2 coordination), pass the realm issuer and OAuth client_id explicitly:

./bin/meho login https://meho.example.com \
  --issuer https://keycloak.example.com/realms/meho \
  --client-id meho-cli

For the durable narrative of the login flow — discovery precedence, polling semantics, storage backend selection, and persisted JSON schema — see ../docs/codebase/cli.md.

Status

./bin/meho status
# Logged in as alice@example.com (sub: ...)
#   Vault: reachable, read OK (version=42)
#   DB:    migrated

--json emits a single machine-parseable JSON document on stdout — the same shape an install.sh smoke test pipes through jq:

./bin/meho status --json | jq .

Exit codes:

Code Meaning
0 Success
1 Generic failure (cobra usage error, etc.)
2 auth_expired — no stored token, or backplane rejected the bearer
3 unreachable — DNS / connection / TLS failure against the backplane
4 unexpected_response — backplane returned a shape outside the contract

On --json mode, errors are emitted on stderr as a JSON envelope:

{"error": "auth_expired", "detail": "...", "exit_code": 2}

The bearer token never appears in any error message — eyJ-prefixed substrings are redacted on the wrapper's error-formatting path.

Server-driven discovery

meho fetches GET /api/v1/commands from the configured backplane at startup and registers any returned commands as dynamic cobra subcommands. v0.1 backplanes return an empty manifest — the scaffold runs but produces no extra commands. v0.2+ operations land in this slot without a CLI binary release.

Fetch failures (404 before G2.2 ships the endpoint, offline operators, etc.) degrade silently to "no extra commands" — the local-only login / status / version set stays usable.

Add-on commands (server-gated)

Some commands wrap a tenant-provisioned add-on rather than a core operation. meho docs (the meho-docs vendor-document add-on, G4.5) is the first: it compiles into every binary and is always listed in meho --help.

There is no client-side capability gate (#2109). Access is decided server-side by the backplane, identically to POST /api/v1/search_docs — the CLI is a thin shell over the same route the REST surface exposes, so the same (query, collection, tenant) gets the same verdict on either surface. The backplane enforces the per-collection meho-docs:<collection> entitlement (and the operator / tenant_admin role on the lifecycle verbs); a caller that is not entitled to the named collection gets a typed 403 the CLI renders as insufficient_role (exit 5), rather than a divergent client-side refusal.

(An earlier shape decoded the bare meho-docs capability from the stored JWT and hid / refused the whole tree client-side. That gate had no counterpart on the REST route — which only checks the per-collection capability — so the two surfaces diverged. The operator decision on #2109 reconciled them to a single server-side gate.)

# Mandatory binary scope: --collection routes + gates per-collection
# entitlement server-side. --product / --version are optional
# refinements within a single collection.
meho docs search "nsx config maximums" --collection vmware
meho docs search "nsx config maximums" --collection vmware --json

# A cited answer from one collection, with its numbered sources and the
# path that wrote it (local or upstream).
meho docs ask "What is new in release X.Y.Z?" --collection vmware

Generated client

internal/api/client.gen.go is produced by oapi-codegen v2.5 from api/openapi.json. The snapshot is committed so consumers don't have to install the generator to build the CLI.

make tools          # installs bin/oapi-codegen v2.5.0
make generate       # regenerates internal/api/client.gen.go
make snapshot-openapi  # re-snapshot api/openapi.json from the backplane

make snapshot-openapi runs the backplane's FastAPI app under uv, exports the OpenAPI document, downgrades the 3.1-specific constructs to 3.0 (oapi-codegen v2 doesn't yet support 3.1), and writes the result back to api/openapi.json. Run this whenever the backplane's API shape changes.

A CI drift check (snapshot up to date vs. live backplane) is a follow-up on the Initiative — see G2.7 for the workflow that will gate PRs on it.

Install

cd cli/
make install                # go install into $(go env GOBIN)

make install honours the same VERSION / COMMIT / DATE overrides as make build.

Test

cd cli/
make test           # go test -race -cover ./...

Lint

cd cli/
make lint           # golangci-lint run

The linter set (errcheck, gosimple, govet, ineffassign, staticcheck, unused, gofmt, goimports, revive) is deliberately narrow — see comments in .golangci.yml for rationale. PR-level CI (lint + test on every push) lands with Initiative G2.7 / Task #48; until then, contributors run make lint && make test locally.

Release

Release builds are driven by GoReleaser configured at .goreleaser.yaml. On every v* tag push, .github/workflows/cli-release.yml builds six static binaries — linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64, windows/arm64 — packages each as a meho_<version>_<os>_<arch>.tar.gz tarball (a .zip file on Windows) containing the binary plus the top-level LICENSE and this README, computes a combined SHA256SUMS file, and publishes them as assets on a new draft GitHub Release at https://github.com/evoila/meho/releases.

The release is created in draft mode — a maintainer flips it to public via the GitHub Releases UI after verifying the four archives + matching .cosign.bundle files are present and meho version reports the expected tag. See the Verify signatures section below for the operator-side check.

Local dry-run
cd cli/
make release-check     # validate .goreleaser.yaml (no build)
make release-dry-run   # produce dist/ tarballs + SHA256SUMS (no push)

Both targets install GoReleaser into bin/ on first run (pinned to the same v2.x line the workflow uses) and never push to GitHub. Inspect the output under dist/:

dist/
├── meho_0.0.1-snapshot_darwin_amd64.tar.gz
├── meho_0.0.1-snapshot_darwin_arm64.tar.gz
├── meho_0.0.1-snapshot_linux_amd64.tar.gz
├── meho_0.0.1-snapshot_linux_arm64.tar.gz
├── meho_0.0.1-snapshot_windows_amd64.zip
├── meho_0.0.1-snapshot_windows_arm64.zip
└── SHA256SUMS

Snapshot mode names tarballs with a synthetic 0.0.1-snapshot version. On a real tag push the version slot gets the tag minus the leading v (meho_0.1.0_linux_amd64.tar.gz) while the binary's meho version output preserves the full tag form (v0.1.0).

Anonymous download

GitHub Releases on public repos are anonymously downloadable. After a maintainer publishes the draft:

TAG=v0.1.0
TARBALL=meho_${TAG#v}_linux_amd64.tar.gz
curl -LO https://github.com/evoila/meho/releases/download/${TAG}/${TARBALL}
curl -LO https://github.com/evoila/meho/releases/download/${TAG}/SHA256SUMS
sha256sum -c SHA256SUMS                   # verify integrity
tar xzf ${TARBALL} && ./meho version       # meho v0.1.0 (commit ..., built ...)

On Windows, download the .zip file in PowerShell and unzip it with Expand-Archive. The full steps are in the install guide. After a release, the windows-check job of cli-release.yml downloads each Windows zip, checks its hash and runs meho.exe version. When the repository variable MEHO_WINDOWS_ARM_CHECK is skip, it checks only amd64, and the job summary asks for a check of the arm64 zip by hand.

Verify signatures

Every release artefact is signed via cosign keyless (ADR 0006) — the GitHub Actions OIDC token is exchanged at Fulcio for a short-lived x509 cert bound to the workflow identity, cosign signs the artefact digest, and the {signature, certificate, Rekor proof} triple is attached to the GitHub Release as a single .cosign.bundle JSON file. No public key to distribute, no key custody to rotate.

TAG=v0.1.0
TARBALL=meho_${TAG#v}_linux_amd64.tar.gz
BASE=https://github.com/evoila/meho/releases/download/${TAG}

curl -LO ${BASE}/${TARBALL}
curl -LO ${BASE}/${TARBALL}.cosign.bundle

cosign verify-blob \
  --certificate-identity-regexp '^https://github\.com/evoila/meho/\.github/workflows/cli-release\.yml@refs/tags/v.+$' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  --bundle ${TARBALL}.cosign.bundle \
  ${TARBALL}
# Verified OK

The identity-claim regex is anchored on cli-release.yml and the refs/tags/v prefix so a malicious workflow on a fork (or a non-tag push on this repo) cannot produce a bundle that satisfies it. Same regex format as image (image.yml) and chart (chart.yml) signing per ADR 0006.

The SHA256SUMS file is signed the same way:

curl -LO ${BASE}/SHA256SUMS
curl -LO ${BASE}/SHA256SUMS.cosign.bundle

cosign verify-blob \
  --certificate-identity-regexp '^https://github\.com/evoila/meho/\.github/workflows/cli-release\.yml@refs/tags/v.+$' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  --bundle SHA256SUMS.cosign.bundle \
  SHA256SUMS
sha256sum -c SHA256SUMS                   # then verify the tarballs

The two-step chain — verify the checksums file's signature first, then sha256sum -c against the tarballs — lets operators verify once and trust a whole release worth of tarballs without re-running cosign for each one.

For the durable map of the release flow — what GoReleaser does, why each archive includes LICENSE + README, how identity is injected, how reproducible builds work, how the cosign signing block plugs in — see ../docs/codebase/cli.md.

Design notes

For the durable map of what's in this module, why it's split the way it is, and how the build flow injects identity at link time, see ../docs/codebase/cli.md.

Interactive-form dependency (huh)

G5.3-T1 (#608) adds charm.land/huh/v2 (MIT, v2.0.3) as the CLI's first interactive-form dependency. huh is the second-generation Charm form library — the import path migrated from github.com/charmbracelet/huh in v1 to the vanity domain charm.land/huh/v2 in v2.

Why huh over the alternatives:

  • manifoldco/promptui — unmaintained since approximately 2020; no releases for several years and outstanding issues that predate current terminal emulator behaviour.
  • AlecAivazis/survey/v2 — verbose composition model and a large hand-rolled TUI stack. Maintenance has slowed with the broader ecosystem shift toward Bubble Tea-native libraries.
  • charm.land/huh/v2 — actively maintained by Charmbracelet; built on Bubble Tea v2 (charm.land/bubbletea/v2) and Lipgloss v2 (charm.land/lipgloss/v2) which are the same TUI primitives the rest of the Charm ecosystem uses. Standalone (no Bubble Tea program required for simple flows) and fully embeddable in a Bubble Tea model for the richer migration UX in T3–T4. MIT-licensed.

This dependency establishes Charm (Bubble Tea / Lipgloss / huh) as the CLI's TUI stack for any future interactive surface. All three libraries share the charm.land vanity-domain import namespace and a compatible versioning cadence; pulling in huh/v2 transitively satisfies any future Bubble Tea or Lipgloss v2 requirement at no extra cost.

License

Apache 2.0. Every Go source file carries the SPDX header // SPDX-License-Identifier: Apache-2.0 per ADR 0003.

Directories

Path Synopsis
cmd
docgen command
Command docgen renders the docs-site CLI reference page (docs-site/reference/cli.md) from the meho cobra command tree.
Command docgen renders the docs-site CLI reference page (docs-site/reference/cli.md) from the meho cobra command tree.
meho command
Command meho is the operator-facing CLI for the MEHO governance backplane.
Command meho is the operator-facing CLI for the MEHO governance backplane.
internal
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
auth
Package auth implements the operator authentication surface for the meho CLI: OAuth 2.0 device authorization (RFC 8628) against the backplane's Keycloak realm, plus cross-platform token persistence.
Package auth implements the operator authentication surface for the meho CLI: OAuth 2.0 device authorization (RFC 8628) against the backplane's Keycloak realm, plus cross-platform token persistence.
backplane
Package backplane holds the backplane-URL resolution + error classification helpers shared by every cmd/* command package.
Package backplane holds the backplane-URL resolution + error classification helpers shared by every cmd/* command package.
cmd
Package cmd assembles the cobra command tree for the meho CLI.
Package cmd assembles the cobra command tree for the meho CLI.
cmd/addon
Package addon hosts the cobra commands under `meho addon ...`.
Package addon hosts the cobra commands under `meho addon ...`.
cmd/admin
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.
cmd/admin/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.
cmd/admin/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.
cmd/agent
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).
cmd/agent-principal
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).
cmd/approvals
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).
cmd/argocd
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.
cmd/audit
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.
cmd/automation
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).
cmd/bind9
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.
cmd/broadcast
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.
cmd/connector
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).
cmd/conventions
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).
cmd/dashboard
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).
cmd/docs
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).
cmd/event-source
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).
cmd/gcloud
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.
cmd/harbor
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.
cmd/hetzner-robot
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.
cmd/holodeck
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).
cmd/k8s
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.
cmd/kb
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.
cmd/keycloak
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.
cmd/memory
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.
cmd/migrate
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.
cmd/nsx
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.
cmd/operation
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).
cmd/pfsense
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.
cmd/policy
Package policy holds the `meho policy ...` commands.
Package policy holds the `meho policy ...` commands.
cmd/principal
Package principal hosts the commands of `meho principal ...`: the admin block list.
Package principal hosts the commands of `meho principal ...`: the admin block list.
cmd/retrieval
Package retrieval hosts the cobra commands under `meho retrieval ...`.
Package retrieval hosts the cobra commands under `meho retrieval ...`.
cmd/runbook
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.
cmd/runner-principal
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.
cmd/scheduler
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).
cmd/sddc-manager
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.
cmd/secret
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).
cmd/sensor
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).
cmd/service-principal
Package serviceprincipal hosts service-principal operator commands.
Package serviceprincipal hosts service-principal operator commands.
cmd/sessions
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).
cmd/targets
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).
cmd/tenants
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).
cmd/topology
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).
cmd/vault
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.
cmd/vcf-automation
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.
cmd/vcf-fleet
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.
cmd/vcf-logs
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.
cmd/vcf-operations
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.
cmd/vmware
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.
cmd/workref
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).
discovery
Package discovery implements Goal #11 spec section 5's server-driven subcommand discovery: the CLI fetches a manifest of dynamic subcommands from the backplane at startup and registers them into the cobra tree without a CLI binary release.
Package discovery implements Goal #11 spec section 5's server-driven subcommand discovery: the CLI fetches a manifest of dynamic subcommands from the backplane at startup and registers them into the cobra tree without a CLI binary release.
dispatch
Package dispatch is the shared operation-call core for the per-vendor CLI command packages (cmd/vault, cmd/harbor, cmd/nsx, ...).
Package dispatch is the shared operation-call core for the per-vendor CLI command packages (cmd/vault, cmd/harbor, cmd/nsx, ...).
migrate
Package migrate contains the pure-logic helpers for the G5.3 laptop-local memory migration flow (Initiative #375).
Package migrate contains the pure-logic helpers for the G5.3 laptop-local memory migration flow (Initiative #375).
netdiag
Package netdiag sorts a failed network call into a small set of failure classes: the host name did not resolve (DNS), the TLS handshake failed, or the host could not be reached at all.
Package netdiag sorts a failed network call into a small set of failure classes: the host name did not resolve (DNS), the TLS handshake failed, or the host could not be reached at all.
output
Package output formats meho CLI command output.
Package output formats meho CLI command output.
startinggrants
Package startinggrants holds the --grants and --target flags that `meho agent-principal register`, `meho agent create` and `meho agent edit` share.
Package startinggrants holds the --grants and --target flags that `meho agent-principal register`, `meho agent create` and `meho agent edit` share.
typedops
Package typedops reads the backplane's per-connector typed-op registries so the per-connector typed_opid_dispatch_test.go guards can reconcile the CLI's dispatched op_ids against the backend's typed-op inventory (#2942).
Package typedops reads the backplane's per-connector typed-op registries so the per-connector typed_opid_dispatch_test.go guards can reconcile the CLI's dispatched op_ids against the backend's typed-op inventory (#2942).
version
Package version exposes build-time identity information for the meho CLI binary.
Package version exposes build-time identity information for the meho CLI binary.

Jump to

Keyboard shortcuts

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