mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:36:10 +02:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user