Port network/url command (#452)

* feat: add url command

* feat(network/url): add sub-command for url
This commit is contained in:
Jae-Heon Ji
2021-12-10 09:09:30 +09:00
committed by GitHub
parent 5c27ffa42e
commit c3b6e07de6
14 changed files with 424 additions and 3 deletions

View File

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