Port date commands to engine-q

This commit is contained in:
Stefan Stanciulescu
2021-10-31 07:54:51 +01:00
parent 6e6df46469
commit 20c770370b
15 changed files with 852 additions and 1 deletions

View File

@ -7,7 +7,7 @@ use nu_protocol::{
use crate::To;
use super::{From, Into, Math, Split};
use super::{Date, From, Into, Math, Split};
pub fn test_examples(cmd: impl Command + 'static) {
let examples = cmd.examples();
@ -22,6 +22,7 @@ pub fn test_examples(cmd: impl Command + 'static) {
working_set.add_decl(Box::new(Into));
working_set.add_decl(Box::new(Split));
working_set.add_decl(Box::new(Math));
working_set.add_decl(Box::new(Date));
// Adding the command that is being tested to the working set
working_set.add_decl(Box::new(cmd));