cmd

package
v0.1.0-rc.16 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package cmd is the root of the w17ctl command tree: it registers every cmd/<command> subpackage into the kong root and runs it (Run). main.go is pure wiring — it only calls cmd.Run. Keeping the assembly + the parse/dispatch flow + the per-command lock-integrity guard here (rather than in an internal package the cmd/* children would have to be imported back into) gives a one-way dependency — cmd → cmd/* → internal — and a unit-testable surface without a process exec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string)

Run parses args against the command tree, runs the per-command lock-integrity guard, and dispatches. It is the single entrypoint main() calls.

Types

This section is empty.

Directories

Path Synopsis
Package admission wires `w17ctl admission` — a read of the console's codegen admission-gate counters.
Package admission wires `w17ctl admission` — a read of the console's codegen admission-gate counters.
Package certs wires `w17ctl certs` — seed a directory with a local dev PKI (a self-signed CA + a CA-signed server leaf) for the opt-in internal-mesh TLS switch (W17_INTERNAL_TLS=on).
Package certs wires `w17ctl certs` — seed a directory with a local dev PKI (a self-signed CA + a CA-signed server leaf) for the opt-in internal-mesh TLS switch (W17_INTERNAL_TLS=on).
Package codegen wires `w17ctl codegen` — a thin kong adapter over the codegen orchestration in internal/codegen.
Package codegen wires `w17ctl codegen` — a thin kong adapter over the codegen orchestration in internal/codegen.
Package guide writes AGENTS.md — the AI-agent USAGE guide for driving w17ctl — and fetches the w17 PLATFORM reference (w17/specs/*) from the console.
Package guide writes AGENTS.md — the AI-agent USAGE guide for driving w17ctl — and fetches the w17 PLATFORM reference (w17/specs/*) from the console.
Package login implements `w17ctl login` — email + password sign-in over the console's gRPC auth gateway (ONE endpoint; the same console address every other w17ctl command dials).
Package login implements `w17ctl login` — email + password sign-in over the console's gRPC auth gateway (ONE endpoint; the same console address every other w17ctl command dials).
Package logout implements `w17ctl logout` — drop a stored console credential.
Package logout implements `w17ctl logout` — drop a stored console credential.
Package org implements `w17ctl org` — list the organizations the logged-in user belongs to and choose the default one.
Package org implements `w17ctl org` — list the organizations the logged-in user belongs to and choose the default one.
Package plugin wires `w17ctl plugin <leaf>` — the plugin catalogue commands (list / install / update / gen-pb).
Package plugin wires `w17ctl plugin <leaf>` — the plugin catalogue commands (list / install / update / gen-pb).
Package schema is `w17ctl schema` — the authoring-time half of the DEV schema path.
Package schema is `w17ctl schema` — the authoring-time half of the DEV schema path.
Package sdk wires the `w17ctl sdk` command.
Package sdk wires the `w17ctl sdk` command.
Package secrets wires `w17ctl secrets <leaf>` — the age-tier ("optional key") production-secrets surface.
Package secrets wires `w17ctl secrets <leaf>` — the age-tier ("optional key") production-secrets surface.
Package stress wires `w17ctl stress <target>` — a thin kong adapter over the load runner in internal/testsuite.
Package stress wires `w17ctl stress <target>` — a thin kong adapter over the load runner in internal/testsuite.
Package test wires `w17ctl test` — a thin kong adapter over the e2e suite runner in internal/testsuite.
Package test wires `w17ctl test` — a thin kong adapter over the e2e suite runner in internal/testsuite.
Package ui wires `w17ctl ui` — a thin kong adapter over the launcher implementation in internal/ui.
Package ui wires `w17ctl ui` — a thin kong adapter over the launcher implementation in internal/ui.
Package verify wires the `w17ctl verify` command.
Package verify wires the `w17ctl verify` command.
Package version implements `w17ctl version`.
Package version implements `w17ctl version`.
Package whoami implements `w17ctl whoami` — show the STORED identity (and org memberships) for the active console, or all of them with --all.
Package whoami implements `w17ctl whoami` — show the STORED identity (and org memberships) for the active console, or all of them with --all.

Jump to

Keyboard shortcuts

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