fix documented list of supported shell completions

This commit is contained in:
Ben Wiederhake
2025-04-01 10:39:13 +02:00
committed by Daniel Hofstetter
parent e50cf46ab7
commit 6d2b4f423b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -76,6 +76,6 @@ pub fn render(c: &Command, shell: &str) -> String {
"nu" | "nushell" => nu::render(c),
"man" => man::render(c),
"sh" | "bash" | "csh" | "elvish" | "powershell" => panic!("shell '{shell}' completion is not implemented yet!"),
_ => panic!("unknown option '{shell}'! Expected one of: \"md\", \"fish\", \"zsh\", \"man\", \"sh\", \"bash\", \"csh\", \"elvish\", \"powershell\""),
_ => panic!("unknown option '{shell}'! Expected one of: \"md\", \"fish\", \"zsh\", \"nu[shell]\", \"man\", \"sh\", \"bash\", \"csh\", \"elvish\", \"powershell\""),
}
}
+2 -2
View File
@@ -33,7 +33,7 @@ Shell completions and documentation can be generated automatically by this crate
cargo run --features parse-is-complete -- [shell]
```
The `[shell]` value here can be `fish`, `zsh`, `bash`, `powershell`, `elvish` or `nu`.
The `[shell]` value here can be `fish`, `zsh`, `nu`, `sh`, `bash`, `csh`, `elvish`, or `powershell`.
> **Note**: Some of these remain unimplemented as of writing.
@@ -47,4 +47,4 @@ If you do not want to hijack the [`Options::parse`](crate::Options::parse) funct
[Up](super)
[Next]()
</div>
</div>