Add initial distributor CLI skeleton

This commit is contained in:
2026-05-31 01:47:39 +00:00
parent 0818733b19
commit 22d0424232
19 changed files with 436 additions and 2 deletions

33
docs/cli.md Normal file
View File

@@ -0,0 +1,33 @@
# Distributor CLI
## Shortest useful command
```sh
go run ./cmd/distributor --help
```
This prints the currently implemented command shell.
## Command overview
```sh
distributor --help
distributor version
distributor run
distributor validate
distributor inspect
```
`version` prints the application name and version. The default development version is `dev`; release builds may replace it at build time.
`run`, `validate`, and `inspect` are command placeholders. They intentionally fail with a clear `not implemented` error until the corresponding application behavior exists.
## Flag reference
The root command supports:
- `--help`, `-h`: print root help.
Each implemented subcommand supports:
- `--help`, `-h`: print command-specific help.