cli: rewrite help text for AI-driven discovery
Frontier models tend to discover a CLI by running --help, scanning the Long description, and inferring the dominant workflow from the examples. Today's banger help reads like a man page index — every verb has a one-line Short and nothing else. This rewrites the groups (banger, vm, vm workspace, image, kernel, system, ssh-config) so each landing page answers "what is this for, what's the 80% command, what comes next" in three to ten lines, with runnable examples. Also disambiguates the near-twin lifecycle commands so a model reading the subcommand index can tell stop/kill/delete apart at a glance: start Start a stopped VM stop Stop a running VM gracefully restart Stop then start a VM kill Force-kill a VM (use when 'vm stop' hangs) delete Stop a VM and remove its disks (irreversible) vm create / vm ssh / vm logs / vm show pick up Long descriptions and examples for the same reason. No behaviour changes; help text only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
41ced66a54
commit
35bfac3f13
6 changed files with 251 additions and 30 deletions
|
|
@ -35,8 +35,34 @@ func (d *deps) newSystemCommand() *cobra.Command {
|
|||
var purge bool
|
||||
cmd := &cobra.Command{
|
||||
Use: "system",
|
||||
Short: "Install and manage banger's system services",
|
||||
RunE: helpNoArgs,
|
||||
Short: "Install banger's owner-daemon and root-helper systemd units",
|
||||
Long: strings.TrimSpace(`
|
||||
Banger ships as two services: an owner-user daemon for
|
||||
orchestration and a narrow root helper for bridge/tap, NAT, and
|
||||
Firecracker launch. 'banger system' installs, restarts, inspects,
|
||||
and removes them.
|
||||
|
||||
First-run flow (must be run as root):
|
||||
|
||||
sudo banger system install --owner $USER install both services
|
||||
banger system status confirm they're up
|
||||
banger doctor check host readiness
|
||||
|
||||
After 'install', the owner user can run 'banger ...' day to day
|
||||
without sudo. Subsequent invocations:
|
||||
|
||||
sudo banger system restart bounce both services
|
||||
sudo banger system uninstall remove services + binaries
|
||||
sudo banger system uninstall --purge also delete /var/lib/banger
|
||||
|
||||
See docs/privileges.md for the full trust model.
|
||||
`),
|
||||
Example: strings.TrimSpace(`
|
||||
sudo banger system install --owner alice
|
||||
banger system status
|
||||
sudo banger system uninstall --purge
|
||||
`),
|
||||
RunE: helpNoArgs,
|
||||
}
|
||||
installCmd := &cobra.Command{
|
||||
Use: "install",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue