mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +01:00
Add long options for viewers (#10787)
![](http://s2.quickmeme.com/img/7f/7f77546945f948560cdc26b12b99d5ccd390c2e39d2849d3423ae7608dac066a.jpg)
This commit is contained in:
parent
7caf27b665
commit
878f0cf6e1
@ -134,7 +134,7 @@ impl Command for Table {
|
||||
vec![
|
||||
Example {
|
||||
description: "List the files in current directory, with indexes starting from 1.",
|
||||
example: r#"ls | table -n 1"#,
|
||||
example: r#"ls | table --start-number 1"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
|
@ -113,13 +113,13 @@ impl Command for Explore {
|
||||
},
|
||||
Example {
|
||||
description: "Explore a list of Markdown files' contents, with row indexes",
|
||||
example: r#"glob *.md | each {|| open } | explore -i"#,
|
||||
example: r#"glob *.md | each {|| open } | explore --index"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description:
|
||||
"Explore a JSON file, then save the last visited sub-structure to a file",
|
||||
example: r#"open file.json | explore -p | to json | save part.json"#,
|
||||
example: r#"open file.json | explore --peek | to json | save part.json"#,
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user