Single binary for browsing

Some systems require a single binary for the BROWSER variable, and
rather than muck about with shell scripts we have this small thing
instead.
This commit is contained in:
John Doty 2022-12-20 07:20:16 -08:00
parent 57c01b0dd4
commit 528d616777
2 changed files with 18 additions and 0 deletions

13
src/bin/fwd-browse.rs Normal file
View file

@ -0,0 +1,13 @@
// TODO: An actual proper UI.
#[tokio::main]
async fn main() {
let args: Vec<String> = std::env::args().collect();
if args.len() < 2 {
eprintln!("Usage: fwd-browse <url>");
std::process::exit(1);
}
fwd::browse_url(&args[1]).await;
}