Port 'ansi strip' command from nushell to engine-q (#511)

* Port 'ansi strip' command from nushell to engine-q

* added example
This commit is contained in:
Matthew Auld
2021-12-17 15:32:03 -05:00
committed by GitHub
parent 438c2df8b6
commit 6ba1e6172c
5 changed files with 129 additions and 3 deletions

View File

@ -7,7 +7,7 @@ use nu_protocol::{
use crate::To;
use super::{Date, From, Into, Math, Path, Random, Split, Str, StrCollect, Url};
use super::{Ansi, Date, From, Into, Math, Path, Random, Split, Str, StrCollect, Url};
pub fn test_examples(cmd: impl Command + 'static) {
let examples = cmd.examples();
@ -28,7 +28,7 @@ pub fn test_examples(cmd: impl Command + 'static) {
working_set.add_decl(Box::new(Path));
working_set.add_decl(Box::new(Date));
working_set.add_decl(Box::new(Url));
working_set.add_decl(Box::new(StrCollect));
working_set.add_decl(Box::new(Ansi));
use super::Echo;
working_set.add_decl(Box::new(Echo));