fix(onboard): accept --yes flag on oclif onboard command#3066
Conversation
Signed-off-by: zyang-dev <267119621+zyang-dev@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new ChangesOnboard CLI Yes Flag
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
The oclif-migrated
nemoclaw onboardcommand was missing a--yesflag declaration, so any non-interactive install throughscripts/install.shfailed withNonexistent flag: --yes. install.sh has appended--yesto onboard since before the migration to auto-accept the Ollama model-download size prompt; this PR adds the flag to the oclif command and forwards it to the legacy parser, restoring non-interactive installs end-to-end.Changes
src/lib/onboard-cli-commands.ts: addyesboolean flag (with-yshort form) toOnboardFlags,buildOnboardFlags(), and the usage string. Forward as--yesintoLegacyOnboardArgs()so the legacyonboard-command.tsparser setsautoYes.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: zyang-dev 267119621+zyang-dev@users.noreply.github.com
Summary by CodeRabbit
--yes/-yflag to the onboard CLI to automatically accept Ollama model-download size confirmation during setup.