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

@ -49,7 +49,7 @@ impl Command for BytesAdd {
}
fn usage(&self) -> &str {
"Add specified bytes to the input"
"Add specified bytes to the input."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -20,7 +20,7 @@ impl Command for Bytes {
}
fn usage(&self) -> &str {
"Various commands for working with byte data"
"Various commands for working with byte data."
}
fn extra_usage(&self) -> &str {

View File

@ -26,7 +26,7 @@ impl Command for BytesCollect {
}
fn usage(&self) -> &str {
"Concatenate multiple binary into a single binary, with an optional separator between each"
"Concatenate multiple binary into a single binary, with an optional separator between each."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -39,7 +39,7 @@ impl Command for BytesEndsWith {
}
fn usage(&self) -> &str {
"Check if bytes ends with a pattern"
"Check if bytes ends with a pattern."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -49,7 +49,7 @@ impl Command for BytesIndexOf {
}
fn usage(&self) -> &str {
"Returns start index of first occurrence of pattern in bytes, or -1 if no match"
"Returns start index of first occurrence of pattern in bytes, or -1 if no match."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -27,7 +27,7 @@ impl Command for BytesLen {
}
fn usage(&self) -> &str {
"Output the length of any bytes in the pipeline"
"Output the length of any bytes in the pipeline."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -43,7 +43,7 @@ impl Command for BytesRemove {
}
fn usage(&self) -> &str {
"Remove bytes"
"Remove bytes."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -43,7 +43,7 @@ impl Command for BytesReplace {
}
fn usage(&self) -> &str {
"Find and replace binary"
"Find and replace binary."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -27,7 +27,7 @@ impl Command for BytesReverse {
}
fn usage(&self) -> &str {
"Reverse the bytes in the pipeline"
"Reverse the bytes in the pipeline."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -40,7 +40,7 @@ impl Command for BytesStartsWith {
}
fn usage(&self) -> &str {
"Check if bytes starts with a pattern"
"Check if bytes starts with a pattern."
}
fn search_terms(&self) -> Vec<&str> {