Only skip server start when CLI arg is passed

This commit is contained in:
Sapphire committed 2025-12-10 14:36:56 -06:00
1 parent 2c4dd4085f
commit 5b68a01186
2 files changed
+2 -7

No files matched your search

+1 -6
View File
@@ -274,12 +274,7 @@ fn setup_tauri(
app.manage(Mutex::new(window_state));
if cli.no_start_server {
log::info!("Skipping server start.");
return Ok(());
}
if server_running() {
if cli.skip_server_start_if_running && server_running() {
log::info!("Skipping server start: server is already running.");
return Ok(());
}
+1 -1
View File
@@ -48,7 +48,7 @@ pub struct Cli {
#[clap(long)]
pub launch_from_path: Option<PathBuf>,
#[clap(long)]
pub no_start_server: bool,
pub skip_server_start_if_running: bool,
#[clap(flatten)]
verbose: clap_verbosity_flag::Verbosity,
}