mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 18:15:04 +02:00
Rename IoStream
to OutDest
(#12433)
# Description I spent a while trying to come up with a good name for what is currently `IoStream`. Looking back, this name is not the best, because it: 1. Implies that it is a stream, when it all it really does is specify the output destination for a stream/pipeline. 2. Implies that it handles input and output, when it really only handles output. So, this PR renames `IoStream` to `OutDest` instead, which should be more clear.
This commit is contained in:
6
crates/nu-command/src/env/config/utils.rs
vendored
6
crates/nu-command/src/env/config/utils.rs
vendored
@ -1,5 +1,5 @@
|
||||
use crate::ExternalCommand;
|
||||
use nu_protocol::{IoStream, Span, Spanned};
|
||||
use nu_protocol::{OutDest, Span, Spanned};
|
||||
use std::{collections::HashMap, path::PathBuf};
|
||||
|
||||
pub(crate) fn gen_command(
|
||||
@ -29,8 +29,8 @@ pub(crate) fn gen_command(
|
||||
name,
|
||||
args,
|
||||
arg_keep_raw: vec![false; number_of_args],
|
||||
out: IoStream::Inherit,
|
||||
err: IoStream::Inherit,
|
||||
out: OutDest::Inherit,
|
||||
err: OutDest::Inherit,
|
||||
env_vars: env_vars_str,
|
||||
}
|
||||
}
|
||||
|
2
crates/nu-command/src/env/with_env.rs
vendored
2
crates/nu-command/src/env/with_env.rs
vendored
@ -79,7 +79,7 @@ fn with_env(
|
||||
|
||||
let capture_block: Closure = call.req(engine_state, stack, 1)?;
|
||||
let block = engine_state.get_block(capture_block.block_id);
|
||||
let mut stack = stack.captures_to_stack_preserve_stdio(capture_block.captures);
|
||||
let mut stack = stack.captures_to_stack_preserve_out_dest(capture_block.captures);
|
||||
|
||||
let mut env: HashMap<String, Value> = HashMap::new();
|
||||
|
||||
|
Reference in New Issue
Block a user