mirror of
https://github.com/nushell/nushell
synced 2024-11-14 17:07:07 +00:00
engine-p: build-string remove ActionStream (#3394)
This commit is contained in:
parent
9fd6923821
commit
75156ab0c9
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ use nu_errors::ShellError;
|
|||
|
||||
use nu_data::value::format_leaf;
|
||||
use nu_engine::WholeStreamCommand;
|
||||
use nu_protocol::{ReturnSuccess, Signature, SyntaxShape, UntaggedValue, Value};
|
||||
use nu_protocol::{Signature, SyntaxShape, UntaggedValue, Value};
|
||||
|
||||
pub struct BuildString;
|
||||
|
||||
|
@ -21,7 +21,7 @@ impl WholeStreamCommand for BuildString {
|
|||
"Builds a string from the arguments."
|
||||
}
|
||||
|
||||
fn run_with_actions(&self, args: CommandArgs) -> Result<ActionStream, ShellError> {
|
||||
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
|
||||
let tag = args.call_info.name_tag.clone();
|
||||
let args = args.evaluate_once()?;
|
||||
let rest: Vec<Value> = args.rest(0)?;
|
||||
|
@ -32,9 +32,9 @@ impl WholeStreamCommand for BuildString {
|
|||
output_string.push_str(&format_leaf(&r).plain_string(100_000))
|
||||
}
|
||||
|
||||
Ok(ActionStream::one(ReturnSuccess::value(
|
||||
Ok(OutputStream::one(
|
||||
UntaggedValue::string(output_string).into_value(tag),
|
||||
)))
|
||||
))
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
|
|
Loading…
Reference in a new issue