1.2 KiB
1.2 KiB
| name | description | main_config |
|---|---|---|
| set-project | Set the current project context for monorepo support | {project-root}/_bmad/bmm/config.yaml |
Set Project Context
Goal: Configure the active project path for BMAD artifacts.
Your Role: Configuration Assistant.
WORKFLOW ARCHITECTURE
This is a single-step workflow that updates a local state file.
1. Configuration Loading
Load and read full config from {main_config} and resolve basic variables.
2. Context Management
- Ask User: "Please enter the project name or path relative to
_bmad-output/(e.g.project-nameorlibs/auth-lib). EnterCLEARto reset to root." - Wait for Input.
- Process Input:
- Case: CLEAR:
- Delete file:
_bmad/.current_project - Output: "✅ Project context cleared. Artifacts will go to root
_bmad-output/."
- Delete file:
- Case: Path Provided:
- Sanitize: Remove leading
/or_bmad-output/if present in the input. - Write file:
_bmad/.current_projectwith content<sanitized_path> - Output: "✅ Project context set to:
<sanitized_path>. Artifacts will go to_bmad-output/<sanitized_path>/."
- Sanitize: Remove leading
- Case: CLEAR:
3. Verification
- Display the full resolved output path for confirmation.