Skip to content

Commit

Permalink
chore(release): Release abcrypt-cli version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Aug 4, 2024
2 parents df9fc52 + f755855 commit 3d51d65
Show file tree
Hide file tree
Showing 25 changed files with 125 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
targets: ${{ matrix.target }}
- name: Install cross
if: ${{ matrix.use-cross }}
uses: taiki-e/[email protected].12
uses: taiki-e/[email protected].14
with:
tool: cross
- name: Cache build artifacts
Expand Down
46 changes: 23 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repository = "https://github.com/sorairolake/abcrypt"

[workspace.dependencies]
anyhow = "1.0.86"
clap = { version = "4.5.11", features = ["derive"] }
clap = { version = "4.5.13", features = ["derive"] }
dialoguer = { version = "0.11.0", default-features = false, features = ["password"] }

[profile.release.package.abcrypt-cli]
Expand Down
2 changes: 1 addition & 1 deletion crates/abcrypt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ serde = { version = "1.0.204", default-features = false, features = ["derive"],
anyhow.workspace = true
clap.workspace = true
dialoguer.workspace = true
serde_json = "1.0.121"
serde_json = "1.0.122"
serde_test = "1.0.176"

[features]
Expand Down
6 changes: 3 additions & 3 deletions crates/abcrypt/examples/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct Opt {

/// Input file.
///
/// If [FILE] is not specified, data will be read from stdin.
/// If [FILE] is not specified, data will be read from standard input.
#[arg(value_name("FILE"))]
input: Option<PathBuf>,
}
Expand All @@ -45,7 +45,7 @@ fn main() -> anyhow::Result<()> {
let mut buf = Vec::new();
io::stdin()
.read_to_end(&mut buf)
.context("could not read data from stdin")?;
.context("could not read data from standard input")?;
Ok(buf)
}?;

Expand All @@ -67,6 +67,6 @@ fn main() -> anyhow::Result<()> {
} else {
io::stdout()
.write_all(&plaintext)
.context("could not write data to stdout")
.context("could not write data to standard output")
}
}
6 changes: 3 additions & 3 deletions crates/abcrypt/examples/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Opt {

/// Input file.
///
/// If [FILE] is not specified, data will be read from stdin.
/// If [FILE] is not specified, data will be read from standard input.
#[arg(value_name("FILE"))]
input: Option<PathBuf>,
}
Expand All @@ -57,7 +57,7 @@ fn main() -> anyhow::Result<()> {
let mut buf = Vec::new();
io::stdin()
.read_to_end(&mut buf)
.context("could not read data from stdin")?;
.context("could not read data from standard input")?;
Ok(buf)
}?;

Expand All @@ -75,6 +75,6 @@ fn main() -> anyhow::Result<()> {
} else {
io::stdout()
.write_all(&ciphertext)
.context("could not write data to stdout")
.context("could not write data to standard output")
}
}
4 changes: 2 additions & 2 deletions crates/abcrypt/examples/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct Opt {

/// Input file.
///
/// If [FILE] is not specified, data will be read from stdin.
/// If [FILE] is not specified, data will be read from standard input.
#[arg(value_name("FILE"))]
input: Option<PathBuf>,
}
Expand All @@ -44,7 +44,7 @@ fn main() -> anyhow::Result<()> {
let mut buf = Vec::new();
io::stdin()
.read_to_end(&mut buf)
.context("could not read data from stdin")?;
.context("could not read data from standard input")?;
Ok(buf)
}?;

Expand Down
7 changes: 7 additions & 0 deletions crates/cli/CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ All notable changes to this project will be documented in this file.
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
project adheres to https://semver.org/[Semantic Versioning].

== {compare-url}/abcrypt-cli-v0.3.2\...abcrypt-cli-v0.3.3[0.3.3] - 2024-08-04

=== Changed

* Change `--passphrase-from-env` to take an UTF-8 string as an environment
variable key ({pull-request-url}/531[#531])

== {compare-url}/abcrypt-cli-v0.3.1\...abcrypt-cli-v0.3.2[0.3.2] - 2024-04-17

=== Changed
Expand Down
6 changes: 3 additions & 3 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[package]
name = "abcrypt-cli"
version = "0.3.2"
version = "0.3.3"
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
Expand All @@ -28,10 +28,10 @@ abcrypt = { version = "0.3.6", path = "../abcrypt", features = ["serde"] }
anyhow.workspace = true
byte-unit = "5.1.4"
clap = { workspace = true, features = ["wrap_help"] }
clap_complete = "4.5.11"
clap_complete = "4.5.12"
clap_complete_nushell = "4.5.3"
dialoguer.workspace = true
serde_json = { version = "1.0.121", optional = true }
serde_json = { version = "1.0.122", optional = true }
sysexits = "0.8.1"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Output:

### Generate shell completion

`--generate-completion` option generates shell completions to stdout.
`--generate-completion` option generates shell completions to standard output.

The following shells are supported:

Expand Down
5 changes: 3 additions & 2 deletions crates/cli/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ use crate::{
input, output, params, passphrase,
};

/// Ensures that there are no conflicts if reading the passphrase from stdin.
/// Ensures that there are no conflicts if reading the passphrase from standard
/// input.
fn ensure_stdin_does_not_conflict(path: Option<&Path>) -> anyhow::Result<()> {
if path.is_none() {
bail!("cannot read both passphrase and input data from stdin");
bail!("cannot read both passphrase and input data from standard input");
}
Ok(())
}
Expand Down
Loading

0 comments on commit 3d51d65

Please sign in to comment.