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

@ -1201,7 +1201,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock ls command"
"Mock ls command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1228,7 +1228,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock group-by command"
"Mock group-by command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1257,7 +1257,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock converter command"
"Mock converter command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1287,7 +1287,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock custom group-by command"
"Mock custom group-by command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1319,7 +1319,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock custom agg command"
"Mock custom agg command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1349,7 +1349,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock custom min command"
"Mock custom min command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1376,7 +1376,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock custom with-column command"
"Mock custom with-column command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1407,7 +1407,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock custom collect command"
"Mock custom collect command."
}
fn signature(&self) -> nu_protocol::Signature {
@ -1437,7 +1437,7 @@ mod input_types {
}
fn usage(&self) -> &str {
"Mock if command"
"Mock if command."
}
fn signature(&self) -> nu_protocol::Signature {