Nucli refactor script mod (#2831)

* move process_script and run_script_standalone out of cli.rs

* cargo fmt

* code cleanup imports

* unused imports issue in cli.rs
This commit is contained in:
Michael Angerman
2020-12-30 15:38:31 -08:00
committed by GitHub
parent 69b3be61a4
commit 7d8e759e98
6 changed files with 286 additions and 275 deletions

View File

@ -191,7 +191,7 @@ pub(crate) async fn run_internal_command(
CommandAction::SourceScript(filename) => {
let contents = std::fs::read_to_string(&filename);
if let Ok(contents) = contents {
let result = crate::cli::run_script_standalone(
let result = crate::script::run_script_standalone(
contents, true, &context, false,
)
.await;