molecule-cli/internal/cmd
Molecule AI SDK-Dev 07ab67552a feat(cli): implement mol init + 2 new integration tests
- Add `mol init` command (internal/cmd/init.go): scaffolds mol.yaml
  in the current directory with commented config sections and
  environment variable documentation. Exits with a clear "next steps"
  message. Checks for existing mol.yaml before overwriting.
- Register initCmd in root.go alongside the other command groups.
- Add 2 integration tests: TestCLI_Init (scaffolding + output)
  and TestCLI_Init_AlreadyExists (error path).
- Update CLAUDE.md command reference to list mol init and note it
  is checked off the stub repo checklist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 10:50:50 +00:00
..
agent.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
config.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
http.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
init.go feat(cli): implement mol init + 2 new integration tests 2026-04-21 10:50:50 +00:00
platform.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00
root.go feat(cli): implement mol init + 2 new integration tests 2026-04-21 10:50:50 +00:00
workspace.go feat: implement full CLI command tree 2026-04-21 01:18:24 +00:00