Skip to content

Commit

Permalink
chore(git): merge main and resolve confilcts
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Sep 1, 2023
2 parents 9fd106d + 8326fe0 commit 0fdc42e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
38 changes: 18 additions & 20 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/orhun/halp"
categories = ["command-line-utilities"]
default-run = "halp"
edition = "2021"
rust-version = "1.64.0"
rust-version = "1.70.0"

[[bin]]
name = "halp-completions"
Expand All @@ -25,14 +25,14 @@ name = "halp-test"
path = "src/bin/test.rs"

[dependencies]
clap = { version = "4.3.21", features =["derive", "env", "wrap_help"] }
clap_complete = "4.3.2"
clap_mangen = "0.2.12"
clap = { version = "4.4.2", features =["derive", "env", "wrap_help"] }
clap_complete = "4.4.0"
clap_mangen = "0.2.13"
colored = "2.0.4"
console = "0.15.7"
dialoguer = { version = "0.10.4", default-features = false }
dirs = "5.0.1"
serde = { version = "1.0.183", features = ["derive"] }
serde = { version = "1.0.188", features = ["derive"] }
thiserror = "1.0.47"
toml = "0.7.6"
ureq = "2.7.1"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.51-rust-1.67-buster AS chef
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster AS chef
WORKDIR /app

FROM chef AS planner
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Usage:
cargo install halp
```

The minimum supported Rust version is `1.64.0`.
The minimum supported Rust version is `1.70.0`.

### Arch Linux

Expand Down
16 changes: 8 additions & 8 deletions src/helper/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ mod tests {
)?;
println!("{}", String::from_utf8_lossy(&output));
assert_eq!(
r#"(°ロ°) checking 'test -v'
r"(°ロ°) checking 'test -v'
(×﹏×) fail '-v' argument not found.
(°ロ°) checking 'test -V'
\(^ヮ^)/ success '-V' argument found!
---
halp 0.1.0
---"#,
---",
String::from_utf8_lossy(&output)
.replace('\r', "")
.replace(&get_test_bin(), "test")
Expand All @@ -171,7 +171,7 @@ halp 0.1.0
&mut output,
)?;
assert_eq!(
r#"(°ロ°) checking 'test -H'
r"(°ロ°) checking 'test -H'
(×﹏×) fail '-H' argument not found.
(o_O) debug
stdout:
Expand Down Expand Up @@ -201,7 +201,7 @@ Usage: test
Options:
-h, --help Print help
-V, --version Print version
---"#,
---",
String::from_utf8_lossy(&output)
.replace('\r', "")
.replace(&get_test_bin(), "test")
Expand All @@ -218,7 +218,7 @@ Options:
get_args_help(&get_test_bin(), config, false, &mut output)?;
println!("{}", String::from_utf8_lossy(&output));
assert_eq!(
r#"(°ロ°) checking 'test -v'
r"(°ロ°) checking 'test -v'
(×﹏×) fail '-v' argument not found.
(°ロ°) checking 'test -V'
\(^ヮ^)/ success '-V' argument found!
Expand All @@ -233,7 +233,7 @@ Usage: test
Options:
-h, --help Print help
-V, --version Print version
---"#,
---",
String::from_utf8_lossy(&output)
.replace('\r', "")
.replace(&get_test_bin(), "test")
Expand All @@ -253,13 +253,13 @@ Options:
get_args_help(&get_test_bin(), config, false, &mut output)?;
println!("{}", String::from_utf8_lossy(&output));
assert_eq!(
r#"(°ロ°) checking 'test -x'
r"(°ロ°) checking 'test -x'
(×﹏×) fail '-x' argument not found.
(°ロ°) checking 'test -V'
\(^ヮ^)/ success '-V' argument found!
---
halp 0.1.0
---"#,
---",
String::from_utf8_lossy(&output)
.replace('\r', "")
.replace(&get_test_bin(), "test")
Expand Down
4 changes: 2 additions & 2 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn get_argument_help() -> Result<()> {
halp::run(args, &mut output)?;
println!("{}", String::from_utf8_lossy(&output));
assert_eq!(
r#"(°ロ°) checking 'test -v'
r"(°ロ°) checking 'test -v'
(×﹏×) fail '-v' argument not found.
(°ロ°) checking 'test -V'
\(^ヮ^)/ success '-V' argument found!
Expand All @@ -36,7 +36,7 @@ Usage: test
Options:
-h, --help Print help
-V, --version Print version
---"#,
---",
String::from_utf8_lossy(&output)
.replace('\r', "")
.replace(BIN, "test")
Expand Down

0 comments on commit 0fdc42e

Please sign in to comment.