Documentation
¶
Overview ¶
Package cli is cobra wiring and nothing else.
It builds spec.Options from flags and hands them on. It never builds an argv and never decides what the sandbox may reach: isolation lives in spec and backend/oci, which is the one rule the old tree kept by convention and this one keeps by layout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteReference ¶
WriteReference writes docs/cli.md: every command of the tree NewRootCmd builds, with its usage line, its help, its examples and its flags.
It is generated rather than written because the help text is the thing users read first and the one most likely to move: a hand-kept reference drifts the first time a flag is renamed, and nobody notices until a reader types the old one. TestCLIReferenceIsCurrent fails when docs/cli.md and this output differ, so the two change in the same commit.
The Markdown is written here rather than by cobra's doc package, which would bring a man-page module into go.mod for a feature we do not use.
Long help is put in a plain text block, as the terminal shows it, not re-flowed into prose: it is written for an 80-column terminal, with indented examples and aligned lists that Markdown would re-flow or read as syntax (`<id>` as a tag, `*.example.com` as emphasis).
Types ¶
This section is empty.
Source Files
¶
- agent.go
- agent_login.go
- agentstate.go
- apikey.go
- commands.go
- config.go
- contexts.go
- docs.go
- events.go
- gateway_admin.go
- gateway_images.go
- gateway_users.go
- image.go
- job.go
- metrics_export.go
- org.go
- registry.go
- resize.go
- root.go
- routed.go
- run.go
- secret.go
- secretwarn.go
- service.go
- shell.go
- ssh.go
- studio.go
- studio_hosted.go
- template.go
- term_linux.go
- term_unix.go
- timezone.go
- update.go
- version.go
- volume.go