Expand description
The bynkc command-line interface definition.
The clap types live here (rather than in main.rs) so they are the single
source of truth for both the binary and the generated CLI reference page
site/src/content/docs/docs/cli.md. render_markdown walks the
clap command tree;
the test tests/cli_reference.rs checks the page is up to date.
Structs§
Enums§
- CliPlatform
- v0.17: the deploy platform that selects the
bynksurface binding. Distinct fromCliTarget(the emit topology). v0.18 addsnode. - CliTarget
- Command
- Diag
Format - v0.38 (ADR 0071):
bynkc check --formatselector. - Emit
Format - v0.108 (in-browser track, slice 1): the emitted artefact language.
ts(the default and primary output) writes the typed TypeScript modules;jswrites the same modules with their types stripped — an emit-then-strip JavaScript artefact (ADR 0137) runnable with notscin the loop. Orthogonal to--target(topology) and--platform(binding). - Test
Format - v0.59:
bynkc test --formatselector. A per-command subset whose value names matchDiagFormat(richis the human rendering acrossbynkc), rather than sharing the enum —testhas noshortbehaviour yet, so it must not expose a value that parses but does nothing.
Functions§
- command
- The clap [
clap::Command] tree for thebynkcCLI. - render_
markdown - Render the CLI reference as a Markdown page, walking the clap command tree.