mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
♻️ rework some help strings (#12306)
# Description I changed some help outputs: ![image](https://github.com/nushell/nushell/assets/30557287/d25f0fbe-ffc3-43b3-93cf-b1793d2351b6) ![image](https://github.com/nushell/nushell/assets/30557287/acb5581c-8959-4916-8a55-d3ed6a2e1dcf) I also checked with `rg` the commands deprecated in #9840 and found a help or a comment here and there. # User-Facing Changes same of above # Tests + Formatting
This commit is contained in:
parent
01d30a416b
commit
bf8de9d1ea
@ -10,7 +10,7 @@ impl Command for ScopeCommands {
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build("scope commands")
|
||||
.input_output_types(vec![(Type::Nothing, Type::Any)])
|
||||
.input_output_types(vec![(Type::Nothing, Type::List(Box::new(Type::Any)))])
|
||||
.allow_variants_without_examples(true)
|
||||
.category(Category::Core)
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ You can also learn more at https://www.nushell.sh/book/"#;
|
||||
},
|
||||
Example {
|
||||
description: "show help for single sub-command, alias, or module",
|
||||
example: "help str lpad",
|
||||
example: "help str join",
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
|
@ -233,7 +233,7 @@ fn usage_start_uppercase() {
|
||||
|
||||
// Check lowercase to allow usage to contain syntax like:
|
||||
//
|
||||
// "`let-env FOO = ...` …"
|
||||
// "`$env.FOO = ...`"
|
||||
if usage.starts_with(|u: char| u.is_lowercase()) {
|
||||
failures.push(format!("{cmd_name}: \"{usage}\""));
|
||||
}
|
||||
|
@ -715,7 +715,7 @@ def pretty-cmd [] {
|
||||
# > help match
|
||||
#
|
||||
# show help for single sub-command, alias, or module
|
||||
# > help str lpad
|
||||
# > help str join
|
||||
#
|
||||
# search for string in command names, usage and search terms
|
||||
# > help --find char
|
||||
|
Loading…
Reference in New Issue
Block a user