aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorRoman Melnikov2023-05-05 10:53:03 +0800
committerGitHub2023-05-05 10:53:03 +0800
commit6b0b6a1c2527e8b1ef370a308b6ef8903004ac47 (patch)
treec8ec6f665d7d0f0f5aa3905e489313f0ebd7832b /src/cli.rs
parentc2ea4e642dc50fd44b537e9860ec95867af30d39 (diff)
parent784e9ee24d977c99dcb5ba5aef81dae48cb899fb (diff)
Merge pull request #205 from serokell/rvem/improve-temp-path-handling
[Chore] Handle 'temp_path' as an actual 'Path' instead of 'String'
Diffstat (limited to '')
-rw-r--r--src/cli.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index f259563..9140d6d 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -14,6 +14,7 @@ use self::deploy::{DeployFlake, ParseFlakeError};
use futures_util::stream::{StreamExt, TryStreamExt};
use log::{debug, error, info, warn};
use serde::Serialize;
+use std::path::PathBuf;
use std::process::Stdio;
use thiserror::Error;
use tokio::process::Command;
@@ -86,7 +87,7 @@ pub struct Opts {
confirm_timeout: Option<u16>,
/// Where to store temporary files (only used by magic-rollback)
#[clap(long)]
- temp_path: Option<String>,
+ temp_path: Option<PathBuf>,
/// Show what will be activated on the machines
#[clap(long)]
dry_activate: bool,