Skip to content

Commit

Permalink
refactor: use os-specific defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Dec 6, 2024
1 parent 1883ba4 commit c5b9e03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ use std::env;
use super::error::CliError;

const DEFAULT_TIMEOUT: u64 = 60000;
const DEFAULT_PIPE_NAME: &str = "cord-ipc";
#[cfg(target_os = "windows")]
const DEFAULT_PIPE_NAME: &str = "\\\\.\\pipe\\cord-ipc";
#[cfg(target_os = "linux")]
const DEFAULT_PIPE_NAME: &str = "/tmp/cord-ipc";

#[derive(Debug)]
pub struct Args {
Expand Down

0 comments on commit c5b9e03

Please sign in to comment.