- chore: ran cargo fix on the codebase
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use crate::{format_shell_command, wait_for_keypress};
|
||||
use crate::format_shell_command;
|
||||
use std::borrow::Cow;
|
||||
use std::env;
|
||||
use std::process::{exit, Command, Stdio};
|
||||
use std::process::{Command, Stdio};
|
||||
use tracing::{debug, error, info, warn};
|
||||
use url::Url;
|
||||
|
||||
@@ -15,7 +14,7 @@ fn create_command() -> Command {
|
||||
wait_for_keypress();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
let mut command = Command::new("./TRose.exe");
|
||||
command
|
||||
}
|
||||
@@ -23,7 +22,13 @@ fn create_command() -> Command {
|
||||
#[cfg(target_os = "linux")]
|
||||
fn create_command() -> Command {
|
||||
let mut command = Command::new("bottles-cli");
|
||||
command.arg("run").arg("-p").arg("TRose").arg("-b").arg("OsIRose").arg("--args");
|
||||
command
|
||||
.arg("run")
|
||||
.arg("-p")
|
||||
.arg("TRose")
|
||||
.arg("-b")
|
||||
.arg("OsIRose")
|
||||
.arg("--args");
|
||||
command
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
mod launcher;
|
||||
|
||||
use std::process::{Command};
|
||||
use std::process::Command;
|
||||
use std::{env, io};
|
||||
use tracing::{debug, error, info, Level};
|
||||
use url::Url;
|
||||
@@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() < 2 {
|
||||
error!("Usage: launcher <url>");
|
||||
return Err(std::io::Error::new(std::io::ErrorKind::InvalidInput, "url"))?
|
||||
return Err(std::io::Error::new(std::io::ErrorKind::InvalidInput, "url"))?;
|
||||
}
|
||||
|
||||
let uri = &args[1];
|
||||
@@ -44,7 +44,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
"update" => Commands::Update,
|
||||
other => return Err(format!("Unknown method: {}", other).into()),
|
||||
};
|
||||
|
||||
|
||||
match action {
|
||||
Commands::Launch => {
|
||||
debug!("launching with URL {}", uri);
|
||||
|
||||
Reference in New Issue
Block a user