Lines Matching refs:ExecuteErrorType

282     err_type: ExecuteErrorType,
292 ExecuteErrorType::CommandNotFound => eprintln!("Command not found"), in handle()
293 ExecuteErrorType::FileNotFound(file) => eprintln!("Not a file or directory: {}", file), in handle()
294 ExecuteErrorType::NotDir(ref path) => eprintln!("Not a Directory: {path}"), in handle()
295 ExecuteErrorType::NotFile(ref path) => eprintln!("Not a File: {path}"), in handle()
296 ExecuteErrorType::PermissionDenied(ref file) => eprintln!("File open denied: {file}"), in handle()
297 ExecuteErrorType::ExecuteFailed => eprintln!("Command execute failed"), in handle()
298 ExecuteErrorType::ExitWithCode(exit_code) => { in handle()
301 ExecuteErrorType::ProcessTerminated => eprintln!("Process terminated"), in handle()
302 ExecuteErrorType::FileOpenFailed(file) => { in handle()
305 ExecuteErrorType::TooManyArguments => eprintln!("Too many arguments"), in handle()
306 ExecuteErrorType::TooFewArguments => eprintln!("Too few arguments"), in handle()
307 ExecuteErrorType::InvalidArgument(arg) => eprintln!("Invalid argument: {}", arg), in handle()
314 pub enum ExecuteErrorType { enum
368 type CommandMap = HashMap<String, fn(&Vec<String>) -> Result<(), ExecuteErrorType>>;
384 let mut err: Option<ExecuteErrorType> = None; in execute()
467 err = Some(ExecuteErrorType::FileOpenFailed( in execute()
510 -1 => Some(ExecuteErrorType::ExecuteFailed), in execute()
517 err = Some(ExecuteErrorType::ExitWithCode(status)); in execute()
520 err = Some(ExecuteErrorType::ProcessTerminated); in execute()
528 err = Some(ExecuteErrorType::ExecuteFailed) in execute()
542 Err(ExecuteErrorType::NotFile(cmd.name.clone())) in execute()
545 Err(ExecuteErrorType::CommandNotFound) in execute()
549 which::which(&cmd.name).map_err(|_| ExecuteErrorType::CommandNotFound) in execute()
583 err = Some(ExecuteErrorType::FileOpenFailed( in execute()
619 err = Some(ExecuteErrorType::ExitWithCode( in execute()
624 None => err = Some(ExecuteErrorType::ProcessTerminated), in execute()
626 Err(_) => err = Some(ExecuteErrorType::ExecuteFailed), in execute()
642 err = Some(ExecuteErrorType::PermissionDenied( in execute()