Fix command descriptions+examples (#5129)

* Fix exit usage

* Move dfr as-date* format examples to extra_usage

* Update command usage and examples

* More docs on `str trim`

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
Reilly Wood
2022-04-08 01:30:49 -07:00
committed by GitHub
parent 6b4cb8b0e0
commit d38a3a8b4e
39 changed files with 104 additions and 62 deletions

View File

@ -14,7 +14,7 @@ impl Command for Fmt {
}
fn usage(&self) -> &str {
"format numbers"
"Format a number"
}
fn signature(&self) -> nu_protocol::Signature {
@ -23,7 +23,7 @@ impl Command for Fmt {
fn examples(&self) -> Vec<Example> {
vec![Example {
description: "format numbers",
description: "Get a record containing multiple formats for the number 42",
example: "42 | fmt",
result: Some(Value::Record {
cols: vec![

View File

@ -18,7 +18,7 @@ impl Command for Into {
}
fn usage(&self) -> &str {
"Apply into function."
"Commands to convert data from one type to another."
}
fn run(

View File

@ -101,7 +101,7 @@ impl Command for SubCommand {
}
fn usage(&self) -> &str {
"converts text into datetime"
"Convert text into a datetime"
}
fn examples(&self) -> Vec<Example> {

View File

@ -22,7 +22,7 @@ impl Command for SubCommand {
}
fn usage(&self) -> &str {
"converts text into decimal"
"Convert text into a decimal"
}
fn run(