Use humantime to parse timeouts
In issue
29c6c6fc8171287faa0079798ba2d6e3e7fd86f3
was noted that it would be nice to use value parsers for the timeouts in the CLI.
This patch implements this.
9 files changed
+48
-31
52e55812
→
99d92421
modified Cargo.lock
@@ -181,7 +181,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1855,6 +1855,12 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2111,7 +2117,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2426,7 +2432,7 @@ version = "0.50.3"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2939,6 +2945,7 @@ dependencies = [
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -3513,7 +3520,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -4197,7 +4204,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified Cargo.toml
@@ -33,6 +33,7 @@ git2 = { version = "0.20.4", default-features = false, features = ["vendored-lib
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-cli/Cargo.toml
@@ -20,6 +20,7 @@ clap = { version = "4.5.44", features = ["derive"] }
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/clone/args.rs
@@ -1,5 +1,4 @@
|
|
| - | |
|
|
|
|
|
@@ -31,15 +30,17 @@ pub(super) struct SyncArgs {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node.rs
@@ -29,9 +29,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -70,9 +68,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node/args.rs
@@ -105,8 +105,10 @@ pub(super) enum Command {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -128,8 +130,10 @@ pub(super) enum Command {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/seed/args.rs
@@ -43,8 +43,10 @@ pub struct Args {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -90,7 +92,7 @@ impl From<Args> for Operation {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/sync/args.rs
@@ -89,15 +89,17 @@ pub(super) struct SyncArgs {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -146,7 +148,7 @@ impl SyncArgs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/watch/args.rs
@@ -43,8 +43,10 @@ pub struct Args {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -55,7 +57,8 @@ impl Args {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|