cli/stats: Use clap
See issue/7fb03f234030b91c38cc4f5b48bd30cf5fd6a1de.
4 files changed
+21
-43
f1c7c986
→
80bc9526
modified crates/radicle-cli/src/commands/help.rs
@@ -64,7 +64,10 @@ const COMMANDS: &[CommandItem] = &[
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/stats.rs
@@ -1,4 +1,5 @@
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -13,22 +14,9 @@ use radicle_term::Element;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -65,30 +53,7 @@ struct Stats {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
added crates/radicle-cli/src/commands/stats/args.rs
@@ -0,0 +1,7 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-cli/src/main.rs
@@ -46,6 +46,7 @@ struct CliArgs {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -167,7 +168,7 @@ fn run(command: Command) -> Result<(), Option<anyhow::Error>> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -283,7 +284,9 @@ fn run_other(exe: &str, args: &[OsString]) -> Result<(), Option<anyhow::Error>>
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|