mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:25:38 +02:00
Add support for 'open' (#573)
This commit is contained in:
@ -65,9 +65,9 @@ impl Command for Table {
|
||||
StringStream::from_stream(
|
||||
stream.map(move |x| {
|
||||
Ok(if x.iter().all(|x| x.is_ascii()) {
|
||||
format!("{}", String::from_utf8_lossy(&x))
|
||||
format!("{}", String::from_utf8_lossy(&x?))
|
||||
} else {
|
||||
format!("{}\n", nu_pretty_hex::pretty_hex(&x))
|
||||
format!("{}\n", nu_pretty_hex::pretty_hex(&x?))
|
||||
})
|
||||
}),
|
||||
ctrlc,
|
||||
|
Reference in New Issue
Block a user