From c0bd8c0d36d5dd41e80e7a31f99faf0683e0da8a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 26 Jul 2025 22:05:26 +0200 Subject: [PATCH] feat: add help text for preview --- Cargo.lock | 2 +- crates/noil/src/cli/apply.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3e095a8..2e2a8a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -389,7 +389,7 @@ dependencies = [ [[package]] name = "noil" -version = "0.0.3" +version = "0.0.4" dependencies = [ "ansi_term", "anyhow", diff --git a/crates/noil/src/cli/apply.rs b/crates/noil/src/cli/apply.rs index 5e51f4f..3bf19d7 100644 --- a/crates/noil/src/cli/apply.rs +++ b/crates/noil/src/cli/apply.rs @@ -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 }