feat: add help text for preview
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-07-26 22:05:26 +02:00
parent dadec333d4
commit c0bd8c0d36
2 changed files with 7 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -389,7 +389,7 @@ dependencies = [
[[package]]
name = "noil"
version = "0.0.3"
version = "0.0.4"
dependencies = [
"ansi_term",
"anyhow",

View File

@@ -22,11 +22,15 @@ impl ApplyCommand {
if !self.commit {
let action = print_changes(&input, !self.commit).await?;
match action {
let res = match action {
Action::Quit => Ok(()),
Action::Apply { original } => apply(&original).await,
Action::Edit => todo!(),
}
};
eprintln!("\nin preview mode: add (--commit) to perform actions");
res
} else {
apply(&input).await
}