forked from extern/nushell
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:
@ -18,13 +18,13 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"column path",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally, remove ansi sequences by column paths",
|
||||
"optionally, remove ANSI sequences by column paths",
|
||||
)
|
||||
.category(Category::Platform)
|
||||
}
|
||||
|
||||
fn usage(&self) -> &str {
|
||||
"strip ansi escape sequences from string"
|
||||
"Strip ANSI escape sequences from a string"
|
||||
}
|
||||
|
||||
fn run(
|
||||
@ -39,7 +39,7 @@ impl Command for SubCommand {
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
description: "strip ansi escape sequences from string",
|
||||
description: "Strip ANSI escape sequences from a string",
|
||||
example: r#"echo [ (ansi green) (ansi cursor_on) "hello" ] | str collect | ansi strip"#,
|
||||
result: Some(Value::test_string("hello")),
|
||||
}]
|
||||
|
Reference in New Issue
Block a user