3 Commits

Author SHA1 Message Date
cuddle-please
37e5cabc3f chore(release): 0.0.6
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2025-07-26 20:07:07 +00:00
c0bd8c0d36 feat: add help text for preview
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-26 22:05:46 +02:00
dadec333d4 chore(release): v0.0.5 (#8)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.0.5

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: #8
2025-07-26 21:48:14 +02:00
4 changed files with 18 additions and 4 deletions

View File

@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.0.6] - 2025-07-26
### Added
- add help text for preview
## [0.0.5] - 2025-07-26
### Added
- actually copy files
## [0.0.4] - 2025-07-26 ## [0.0.4] - 2025-07-26
### Added ### Added

2
Cargo.lock generated
View File

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

View File

@@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
version = "0.0.4" version = "0.0.6"
[workspace.dependencies] [workspace.dependencies]
noil = { path = "crates/noil" } noil = { path = "crates/noil" }

View File

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