mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
Add fabro docs subcommand to open docs website in browser
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a7ab0e8428
commit
693392f3ed
1 changed files with 6 additions and 0 deletions
|
|
@ -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?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue