mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 14:39:16 +02:00
Further edits to help messages (#6913)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user