diff --git a/cli/src/commands/game.rs b/cli/src/commands/game.rs index bf88d8a7..c4cf50e3 100644 --- a/cli/src/commands/game.rs +++ b/cli/src/commands/game.rs @@ -41,7 +41,12 @@ impl SubCommand { Ok(()) } SubCommand::View => { - eprintln!("{}", term::link(dashboard_url(&ctx, &ctx.game_id))); + let url = dashboard_url(&ctx, &ctx.game_id); + eprintln!("Opening {}", term::link(url)); + + if webbrowser::open(&url).is_err() { + eprintln!("Failed to open URL in browser."); + } Ok(()) }