mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-05 08:10:39 +00:00
These top-level commands still took `&CliNamespace` + `Printer` separately. Thread `&CommandContext` through the public entry points and pull what's needed (`user_settings().cli`, `printer()`, `json_output()`) from the context: - parse: both args were unused — drop entirely. - workflow list/create: use `ctx.json_output()` / `ctx.printer()`. - exec: bind `cli = &ctx.user_settings().cli` at the top; drop unused printer param. - upgrade: extract cli/printer inside run_upgrade; leave the private run_upgrade_brew helper with its existing signature (unit tests use `CliNamespace::default()` directly). - uninstall: use `ctx.json_output()` / `ctx.printer()`. Install remains on the old signature — its nested callback structure makes a larger refactor than this simplification pass warrants. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| crates | ||
| packages/fabro-api-client | ||