Port merge command from Nushell (#808)

* Add example test to zip

* Port merge command from Nushell

On top of the original merge, this one should not collect a stream
returned from the merged block and allows merging records.
This commit is contained in:
Jakub Žádník
2022-01-22 01:50:26 +02:00
committed by GitHub
parent e1272f3b73
commit 564c2dd7d1
6 changed files with 258 additions and 3 deletions

View File

@ -14,7 +14,7 @@ use crate::To;
#[cfg(test)]
use super::{
Ansi, Date, From, If, Into, Math, Path, Random, Split, Str, StrCollect, StrFindReplace,
StrLength, Url,
StrLength, Url, Wrap,
};
#[cfg(test)]
@ -44,6 +44,7 @@ pub fn test_examples(cmd: impl Command + 'static) {
working_set.add_decl(Box::new(Date));
working_set.add_decl(Box::new(Url));
working_set.add_decl(Box::new(Ansi));
working_set.add_decl(Box::new(Wrap));
use super::Echo;
working_set.add_decl(Box::new(Echo));