pub fn evaluate_file(
path: String,
args: &[String],
engine_state: &mut EngineState,
stack: &mut Stack,
input: PipelineData,
) -> Result<(), ShellError>Expand description
Entry point for evaluating a file.
If the file contains a main command, it is invoked with args and the pipeline data from input;
otherwise, the pipeline data is forwarded to the first command in the file, and args are ignored.