Skip to content

Commit

Permalink
src: Fix path expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Aug 6, 2024
1 parent 100c3e7 commit fa1f76a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/cli/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ pub fn is_enable_auto_create() -> bool {
}

pub fn log_path() -> String {
MANAGER
.clap_matches
.log_path
.clone()
.expect("Clap arg \"log-path\" should always be \"Some(_)\" because of the default value.")
let log_path =
MANAGER.clap_matches.log_path.clone().expect(
"Clap arg \"log-path\" should always be \"Some(_)\" because of the default value.",
);

shellexpand::full(&log_path)
.expect("Failed to expand path")
.to_string()
}

// Return the desired address for the REST API
Expand Down

0 comments on commit fa1f76a

Please sign in to comment.