refactor(cli): centralize oclif base conventions#3612
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
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 (46)
💤 Files with no reviewable changes (32)
📝 WalkthroughWalkthroughThis PR systematically removes the explicit ChangesHelp flag centralization across oclif commands
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
# Conflicts: # src/commands/internal/dns/fix-coredns.ts # src/commands/internal/dns/setup-proxy.ts # src/lib/cli/oclif-command-metadata.test.ts # src/lib/commands/credentials.ts # src/lib/commands/credentials/list.ts # src/lib/commands/deploy.ts # src/lib/commands/deprecated/start.ts # src/lib/commands/deprecated/stop.ts # src/lib/commands/sandbox/channels/list.ts # src/lib/commands/sandbox/hosts/list.ts # src/lib/commands/sandbox/policy/list.ts # src/lib/commands/sandbox/share.ts # src/lib/commands/sandbox/share/mount.ts # src/lib/commands/sandbox/share/status.ts # src/lib/commands/sandbox/share/unmount.ts # src/lib/commands/sandbox/shields/status.ts # src/lib/commands/sandbox/shields/up.ts # src/lib/commands/sandbox/skill/install.ts # src/lib/commands/sandbox/snapshot/list.ts # src/lib/commands/sandbox/status.ts # src/lib/commands/tunnel/start.ts # src/lib/commands/tunnel/stop.ts # src/lib/commands/uninstall.ts # src/lib/recover-cli-command.ts
Selective E2E Results — ✅ All requested jobs passedRun: 25932751198
|
Summary
Uses the shared
NemoClawCommandbase for common oclif conventions now that #3611 has landed. It removes duplicated command-local help flags, routes internal JSON output through the base helper, and adds a guard so help stays centralized.Changes
help: Flags.help({ char: "h" })declarations now inherited fromNemoClawCommand.baseFlags.console.log(JSON.stringify(..., null, 2))calls withthis.logJson(...).helpflag.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
logJsonmethod instead of manual JSON stringification.