Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Add printing URL info in terminal::open_browser
Browse files Browse the repository at this point in the history
  • Loading branch information
encadyma committed Oct 27, 2020
1 parent afc6794 commit ff245a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/terminal/browser.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::terminal::message::{Message, StdOut};
use std::process::{Command, Stdio};

pub fn open_browser(url: &str) -> Result<(), failure::Error> {
Expand Down Expand Up @@ -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(())
}

0 comments on commit ff245a6

Please sign in to comment.