From ff245a6851ed165aecf0812ce9e1ee822a788c06 Mon Sep 17 00:00:00 2001 From: kmo Date: Thu, 22 Oct 2020 00:25:21 -0700 Subject: [PATCH] Add printing URL info in terminal::open_browser --- src/terminal/browser.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terminal/browser.rs b/src/terminal/browser.rs index d0a1047d7..be2d6865d 100644 --- a/src/terminal/browser.rs +++ b/src/terminal/browser.rs @@ -1,3 +1,4 @@ +use crate::terminal::message::{Message, StdOut}; use std::process::{Command, Stdio}; pub fn open_browser(url: &str) -> Result<(), failure::Error> { @@ -27,5 +28,7 @@ pub fn open_browser(url: &str) -> Result<(), failure::Error> { .spawn()?; }; + let msg = format!("Opened a link in your default browser: {}", url); + StdOut::info(&msg); Ok(()) }