mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-09 03:20:56 +00:00
Add fabro discord subcommand to open Discord invite in browser
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aca96d14b0
commit
d339aeae58
1 changed files with 6 additions and 0 deletions
|
|
@ -141,6 +141,8 @@ enum Command {
|
|||
#[command(subcommand)]
|
||||
command: WorkflowCommand,
|
||||
},
|
||||
/// Open the Discord community in the browser
|
||||
Discord,
|
||||
/// Open the docs website in the browser
|
||||
Docs,
|
||||
/// Upgrade fabro to the latest version
|
||||
|
|
@ -453,6 +455,7 @@ async fn main_inner() -> (String, Result<()>) {
|
|||
Command::Skill { command } => match command {
|
||||
SkillCommand::Install(_) => "skill install",
|
||||
},
|
||||
Command::Discord => "discord",
|
||||
Command::Docs => "docs",
|
||||
Command::Upgrade(_) => "upgrade",
|
||||
Command::System { command } => match command {
|
||||
|
|
@ -750,6 +753,9 @@ async fn main_inner() -> (String, Result<()>) {
|
|||
let exit_code = doctor::run_doctor(verbose, !dry_run).await;
|
||||
std::process::exit(exit_code);
|
||||
}
|
||||
Command::Discord => {
|
||||
open::that("https://discord.gg/KE6w49Vg")?;
|
||||
}
|
||||
Command::Docs => {
|
||||
open::that("https://docs.fabro.sh/")?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue