BMAD-METHOD/tools/cli
Nikita Levyankov e9c0aafad9 fix: wrap string profile values in arrays for consistency
The ternary operators WERE needed after all! Profile values can be:
- Arrays: ['dev', 'architect', 'pm']
- Strings: 'all' (special keyword)

Downstream code expects arrays:
- filterWorkflows() checks selectedWorkflows.includes('all')
- filterAgents() checks selectedAgents.includes('all')
- separateModifiers() iterates with for-of loop

Without wrapping strings in arrays:
- 'all' → stays as string → includes() doesn't work
- WITH fix: 'all' → becomes ['all'] → includes('all') works ✓

This fixes the profile workflow:
1. Profile defines: workflows: 'all'
2. Parser wraps: normalized.workflows = ['all']
3. Filter checks: selectedWorkflows.includes('all') → true ✓

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-18 12:36:30 +02:00
..
commands Merge branch 'main' into main 2025-12-18 02:47:51 +08:00
installers/lib fix: wrap string profile values in arrays for consistency 2025-12-18 12:36:30 +02:00
lib Merge branch 'main' into main 2025-12-18 02:47:51 +08:00
test feat: introduce non-interactive cli installation 2025-12-17 11:42:35 +02:00
README.md folder rename from .bmad to _bmad 2025-12-13 16:22:34 +08:00
bmad-cli.js npx with version selector 2025-10-26 23:42:56 -05:00

README.md

BMad CLI Tool

Revised CLI tool docs coming....