mirror of
https://github.com/nushell/nushell.git
synced 2025-07-08 02:17:22 +02:00
Update docs for open and decode command, regenerate all docs (#4815)
* Update docs for open and decode command, regenerate all docs * Update open.rs * Update open.md Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
This commit is contained in:
@ -20,7 +20,7 @@ impl Command for Open {
|
||||
}
|
||||
|
||||
fn usage(&self) -> &str {
|
||||
"Opens a file."
|
||||
"Load a file into a cell, converting to table if possible (avoid by appending '--raw')."
|
||||
}
|
||||
|
||||
fn signature(&self) -> nu_protocol::Signature {
|
||||
@ -172,6 +172,11 @@ impl Command for Open {
|
||||
example: "echo 'myfile.txt' | open",
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Open a file, and decode it by the specified encoding",
|
||||
example: "open myfile.txt --raw | decode utf-8",
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user