Add a batch of help examples (#1755)

This commit is contained in:
Jonathan Turner
2020-05-12 13:00:55 +12:00
committed by GitHub
parent c5ea4a31bd
commit 8b9a8daa1d
12 changed files with 98 additions and 2 deletions

View File

@ -35,6 +35,13 @@ impl WholeStreamCommand for Append {
) -> Result<OutputStream, ShellError> {
args.process(registry, append)?.run()
}
fn examples(&self) -> &[Example] {
&[Example {
description: "Add something to the end of a list or table",
example: "echo [1 2 3] | append 4",
}]
}
}
fn append(