mirror of
https://github.com/danbulant/nushell
synced 2026-05-20 04:48:47 +00:00
12 lines
339 B
Rust
12 lines
339 B
Rust
use crate::prelude::*;
|
|
use futures::stream::BoxStream;
|
|
|
|
pub type InputStream = BoxStream<'static, Value>;
|
|
pub type OutputStream = BoxStream<'static, ReturnValue>;
|
|
|
|
crate fn single_output(item: Value) -> OutputStream {
|
|
let value = ReturnValue::Value(item);
|
|
let mut vec = VecDeque::new();
|
|
vec.push_back(value);
|
|
vec.boxed()
|
|
}
|