Skip to content

Flag restructuring for bt setup#105

Merged
ViaDézo1er / cedric (viadezo1er) merged 14 commits intomainfrom
cedric-better-dx-pr1
Apr 14, 2026
Merged

Flag restructuring for bt setup#105
ViaDézo1er / cedric (viadezo1er) merged 14 commits intomainfrom
cedric-better-dx-pr1

Conversation

@viadezo1er
Copy link
Copy Markdown
Contributor

@viadezo1er ViaDézo1er / cedric (viadezo1er) commented Apr 10, 2026

Mechanical rename/removal of CLI flags:

  • --quiet--verbose (invert default)
  • --agents (repeatable) → --agent (single), remove AgentArg::All
  • --no-mcp-skill--no-skills + --no-mcp
  • Add --no-instrument, --tui/--background, --no-workflow
  • Move --yes to #[arg(skip)]
  • --interactive/-i flag, that more or less preserves the previous behavior of asking all questions

Part 1 of #94

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Latest downloadable build artifacts for this PR commit 3c601989b84c:

Available artifact names
  • ``artifacts-build-global
  • ``artifacts-build-local-x86_64-pc-windows-msvc
  • ``artifacts-build-local-x86_64-apple-darwin
  • ``artifacts-build-local-aarch64-apple-darwin
  • ``artifacts-build-local-x86_64-unknown-linux-musl
  • ``artifacts-build-local-x86_64-unknown-linux-gnu
  • ``artifacts-build-local-aarch64-unknown-linux-musl
  • ``artifacts-build-local-aarch64-unknown-linux-gnu
  • ``artifacts-plan-dist-manifest
  • ``cargo-dist-cache

@viadezo1er
Copy link
Copy Markdown
Contributor Author

pre-commit run --all-files does not show any issue locally...

Rename/restructure CLI flags to improve UX without changing core behaviour:

BaseArgs:
- Remove --quiet/-q (BRAINTRUST_QUIET) and --no-input; quiet output is
  now the global default (set_quiet(true) in configure_output).
- Add verbose: bool as #[arg(skip)] — subcommands set it at runtime;
  set up output messages are shown only when verbose is active.

SetupArgs:
- --no-mcp-skill → --no-skills + --no-mcp (orthogonal opt-outs)
- Add --no-instrument (opt-out; instrument is the new default)
- Add --tui / --background (replace --interactive / --quiet in wizard)
- Add --language (repeatable), --interactive/-i, --verbose/-v at top level

AgentsSetupArgs:
- --agent (repeatable Vec) → --agent (single Option); drop AgentArg::All
- --yes removed from CLI (#[arg(skip)]); programmatic callers still set yes:true
- Add --no-workflow (conflicts with --workflow)

AgentsMcpSetupArgs:
- Same agents→agent and yes→skip treatment

InstrumentSetupArgs:
- --quiet → --background (run agent non-interactively, show spinner)
- --interactive → --tui (run agent in interactive TUI mode)
- --yes → #[arg(skip)]
- Add skip_launch: bool (#[arg(skip)]) for future wizard use

resolve_selected_agents: signature changes from &[AgentArg] to
Option<AgentArg>; None auto-detects all installed agents as before.

All call sites, struct literals in tests, and BaseArgs literals in
auth/switch/traces/functions updated to match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- `bt setup instrument --interactive` now accepted as alias for --tui
- `bt setup instrument --quiet` now accepted as alias for --background
- `bt setup --no-mcp-skill` now accepted as hidden alias for --no-skills --no-mcp
- Explicit error when --json and --tui are both passed
@viadezo1er ViaDézo1er / cedric (viadezo1er) changed the title Cedric better dx pr1 Flag restructuring for bt setup Apr 13, 2026
Comment thread src/setup/mod.rs Outdated
Comment thread src/setup/mod.rs Outdated
Comment thread src/setup/mod.rs
Comment thread src/setup/mod.rs
Comment thread src/setup/mod.rs Outdated
@viadezo1er ViaDézo1er / cedric (viadezo1er) merged commit 9743cd6 into main Apr 14, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants