add random commands (#366)

* feat: add random command

* feat: add bool sub-command
This commit is contained in:
Jae-Heon Ji
2021-11-30 15:12:19 +09:00
committed by GitHub
parent ce4d9dc7c6
commit 21ddfc61f4
8 changed files with 154 additions and 1 deletions

View File

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