feat: enhance install command with directory option and update prompt logic#1376
feat: enhance install command with directory option and update prompt logic#1376thecontstruct wants to merge 5 commits intobmad-code-org:mainfrom
Conversation
… logic Added a new CLI option for specifying the target project directory, allowing users to skip the interactive prompt. Updated the installation prompt method to accept options and handle directory validation accordingly.
📝 WalkthroughWalkthroughThe changes add a Changes
Sequence DiagramsequenceDiagram
participant User as User/CLI
participant Cmd as install.js
participant UI as promptInstall()
participant Dir as getConfirmedDirectory()
participant FS as File System
User->>Cmd: Invoke with --directory option
Cmd->>UI: promptInstall(options)
alt Directory Option Provided
UI->>Dir: getConfirmedDirectory(options)
Dir->>FS: Expand & Validate Path
FS-->>Dir: Path Valid
Dir-->>UI: Return Confirmed Directory
else No Directory Option
UI->>Dir: getConfirmedDirectory(options)
Dir->>User: Show Interactive Prompt
User-->>Dir: User Selects Directory
Dir-->>UI: Return Selected Directory
end
UI-->>Cmd: Return Installation Directory
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for this one. I have a lot of in progress installer updates, once I merge them I will get this in. Sorry for the delays also on the command line install options - I will try to focus on that tomorrow or in the next week. But this is a good quick addition. |
|
merged in another PR that had options for all install questions - thanks @thecontstruct |
Added a new CLI option for specifying the target project directory, allowing users to skip the interactive prompt. Updated the installation prompt method to accept options and handle directory validation accordingly.
This might be premature since I know it was goign to come back eventually but it's been driving me crazy having to constantly copy paste the full path of all the repo's I want to install the latest from
maininto every day or two during the install.