switch from reqwest to surf

This commit is contained in:
Jonathan Turner
2019-08-25 07:36:19 +12:00
parent ea86d14673
commit 721a7b159d
17 changed files with 429 additions and 760 deletions

View File

@ -18,7 +18,7 @@ impl PerItemCommand for Mkdir {
_registry: &CommandRegistry,
shell_manager: &ShellManager,
_input: Tagged<Value>,
) -> Result<VecDeque<ReturnValue>, ShellError> {
) -> Result<OutputStream, ShellError> {
call_info.process(shell_manager, mkdir)?.run()
}
@ -31,10 +31,7 @@ impl PerItemCommand for Mkdir {
}
}
fn mkdir(
args: MkdirArgs,
context: &RunnablePerItemContext,
) -> Result<VecDeque<ReturnValue>, ShellError> {
fn mkdir(args: MkdirArgs, context: &RunnablePerItemContext) -> Result<OutputStream, ShellError> {
let shell_manager = context.shell_manager.clone();
shell_manager.mkdir(args, context)
}