mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 10:43:29 +02:00
Add support for stderr and exit code (#4647)
This commit is contained in:
@ -44,7 +44,7 @@ impl Command for Decode {
|
||||
let encoding: Spanned<String> = call.req(engine_state, stack, 0)?;
|
||||
|
||||
match input {
|
||||
PipelineData::RawStream(stream, ..) => {
|
||||
PipelineData::ExternalStream { stdout: stream, .. } => {
|
||||
let bytes: Vec<u8> = stream.into_bytes()?.item;
|
||||
|
||||
let encoding = match Encoding::for_label(encoding.item.as_bytes()) {
|
||||
|
Reference in New Issue
Block a user