cli/completion: Add shell completion for cli
Add shell completions for Bash, Elvish, Fish, PowerShell, and Zsh using the clap_complete crate
4 files changed
+63
-31
7e5a1aba
→
93d2ed8c
modified Cargo.lock
@@ -478,6 +478,15 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2819,6 +2828,7 @@ dependencies = [
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-cli/Cargo.toml
@@ -17,6 +17,7 @@ path = "src/main.rs"
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-help.md
@@ -12,36 +12,37 @@ Do you have feedback?
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/main.rs
@@ -7,7 +7,7 @@ use std::{io::ErrorKind, process};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,6 +98,13 @@ enum Command {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -176,10 +183,23 @@ fn run_command(command: Command, ctx: impl term::Context) -> Result<(), anyhow::
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|