Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 942 Bytes

File metadata and controls

26 lines (18 loc) · 942 Bytes

cmd/wavecli

Purpose

Binary entry point for the wavecli CLI. main is a thin wrapper: it builds the root cobra command from waveclicommands, executes it, and maps any returned error onto a semantic process exit code (2=invalid args, 3=auth, 4=not found, 5=confirmation required) so scripting agents can branch on failure category without parsing stderr prose.

Relationships

  • Depends on: cmd/wavecli/waveclicommands (root command, all subcommands, exit-code table); cmd/wavecli/internal/gen-devrpc (code-gen tool, not linked into the binary).
  • Depended on by: nothing (binary entry point).

Invariants

  • Any error already printed via waveclicommands.PrintError (checked with ErrorWasPrinted) must not be printed again here; main only renders the fallback envelope for errors that reach it unprinted.

Deep Docs