molecule-cli/internal/cmd
Molecule AI SDK-Dev 1471cad4c1 feat(cli): add molecule completion [bash|zsh|fish|powershell] subcommand
Wires shell completion for all 4 shells via Cobra's built-in generators.
Covers the remaining item from the implementation status checklist.

Adds:
- internal/cmd/completion.go: cobra.GenXxxCompletion wrappers with
  usage examples for each shell
- 5 new integration tests in cmd/molecule/molecule_test.go:
  - TestCLI_Completion_Help (4 shells × help flag)
  - TestCLI_Completion_GeneratesScript (4 shells × script output)
  - TestCLI_Completion_InvalidShell (exit code 2 on bad shell)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 18:06:02 +00:00
..
agent.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
completion.go feat(cli): add molecule completion [bash|zsh|fish|powershell] subcommand 2026-04-22 18:06:02 +00:00
config.go fix(cli): complete "mol" → "molecule" rename in test error messages 2026-04-22 07:35:31 +00:00
http.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
init.go fix(cli): complete "mol" → "molecule" rename across all cmd packages 2026-04-22 06:36:42 +00:00
platform.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
root.go fix(cli): complete "mol" → "molecule" rename across all cmd packages 2026-04-22 06:36:42 +00:00
workspace.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00