From 693392f3edb0d47a37f8b2f0e4cb95643367f7a5 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Tue, 17 Mar 2026 08:16:46 -0400 Subject: [PATCH] Add `fabro docs` subcommand to open docs website in browser Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-cli/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/crates/fabro-cli/src/main.rs b/lib/crates/fabro-cli/src/main.rs index 36bf56ec7..fa612ec91 100644 --- a/lib/crates/fabro-cli/src/main.rs +++ b/lib/crates/fabro-cli/src/main.rs @@ -141,6 +141,8 @@ enum Command { #[command(subcommand)] command: WorkflowCommand, }, + /// Open the docs website in the browser + Docs, /// Upgrade fabro to the latest version Upgrade(upgrade::UpgradeArgs), /// System maintenance commands @@ -451,6 +453,7 @@ async fn main_inner() -> (String, Result<()>) { Command::Skill { command } => match command { SkillCommand::Install(_) => "skill install", }, + Command::Docs => "docs", Command::Upgrade(_) => "upgrade", Command::System { command } => match command { SystemCommand::Prune(_) => "system prune", @@ -747,6 +750,9 @@ async fn main_inner() -> (String, Result<()>) { let exit_code = doctor::run_doctor(verbose, !dry_run).await; std::process::exit(exit_code); } + Command::Docs => { + open::that("https://docs.fabro.sh/")?; + } Command::Init => { init::run_init().await?; }