Uniformize usage() and extra_usage() message ending for commands helper. (#8268)

# Description

Working on uniformizing the ending messages regarding methods usage()
and extra_usage(). This is related to the issue
https://github.com/nushell/nushell/issues/5066 after discussing it with
@jntrnr

# User-Facing Changes

None.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
This commit is contained in:
Jérémy Audiger
2023-03-01 06:33:02 +01:00
committed by GitHub
parent 644164fab3
commit a5c604c283
268 changed files with 278 additions and 278 deletions

View File

@@ -54,7 +54,7 @@ impl Command for SubCommand {
}
fn usage(&self) -> &str {
"Add a color gradient (using ANSI color codes) to the given string"
"Add a color gradient (using ANSI color codes) to the given string."
}
fn run(

View File

@@ -45,7 +45,7 @@ impl Command for SubCommand {
}
fn usage(&self) -> &str {
"Add a link (using OSC 8 escape sequence) to the given string"
"Add a link (using OSC 8 escape sequence) to the given string."
}
fn run(

View File

@@ -25,7 +25,7 @@ impl Command for SubCommand {
}
fn usage(&self) -> &str {
"Strip ANSI escape sequences from a string"
"Strip ANSI escape sequences from a string."
}
fn run(

View File

@@ -20,7 +20,7 @@ impl Command for Keybindings {
}
fn usage(&self) -> &str {
"Keybindings related commands"
"Keybindings related commands."
}
fn extra_usage(&self) -> &str {

View File

@@ -20,7 +20,7 @@ impl Command for KeybindingsDefault {
}
fn usage(&self) -> &str {
"List default keybindings"
"List default keybindings."
}
fn examples(&self) -> Vec<Example> {

View File

@@ -28,7 +28,7 @@ impl Command for KeybindingsList {
}
fn usage(&self) -> &str {
"List available options that can be used to create keybindings"
"List available options that can be used to create keybindings."
}
fn examples(&self) -> Vec<Example> {

View File

@@ -14,7 +14,7 @@ impl Command for TermSize {
}
fn usage(&self) -> &str {
"Returns a record containing the number of columns (width) and rows (height) of the terminal"
"Returns a record containing the number of columns (width) and rows (height) of the terminal."
}
fn signature(&self) -> Signature {