Further edits to help messages (#6913)

This commit is contained in:
Leon
2022-10-27 02:36:42 +10:00
committed by GitHub
parent 902aad6016
commit 5add5cbd12
34 changed files with 113 additions and 73 deletions

View File

@@ -165,7 +165,7 @@ impl Command for Table {
},
Example {
description: "Render data in table view",
example: r#"echo [[a b]; [1 2] [3 4]] | table"#,
example: r#"[[a b]; [1 2] [3 4]] | table"#,
result: Some(Value::List {
vals: vec![
Value::Record {
@@ -184,7 +184,7 @@ impl Command for Table {
},
Example {
description: "Render data in table view (expanded)",
example: r#"echo [[a b]; [1 2] [2 [4 4]]] | table --expand"#,
example: r#"[[a b]; [1 2] [2 [4 4]]] | table --expand"#,
result: Some(Value::List {
vals: vec![
Value::Record {
@@ -203,7 +203,7 @@ impl Command for Table {
},
Example {
description: "Render data in table view (collapsed)",
example: r#"echo [[a b]; [1 2] [2 [4 4]]] | table --collapse"#,
example: r#"[[a b]; [1 2] [2 [4 4]]] | table --collapse"#,
result: Some(Value::List {
vals: vec![
Value::Record {
@@ -774,6 +774,7 @@ fn convert_to_table(
}
#[allow(clippy::too_many_arguments)]
#[allow(clippy::into_iter_on_ref)]
fn convert_to_table2<'a>(
row_offset: usize,
input: impl Iterator<Item = &'a Value> + ExactSizeIterator + Clone,