aboutsummaryrefslogtreecommitdiff
path: root/src/commandline/command.rs
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-30 12:25:56 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-30 12:57:52 +0200
commitd49542575db8f931a4492d0b149bad028b4b68ca (patch)
tree9db7989322af9866789644d9e3abf13e6f1b7ec3 /src/commandline/command.rs
parentRefactoring (diff)
downloadrshell-master.tar.xz
Add autocompleterHEADmaster
Diffstat (limited to 'src/commandline/command.rs')
-rw-r--r--src/commandline/command.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/commandline/command.rs b/src/commandline/command.rs
index d00f420..c8b326d 100644
--- a/src/commandline/command.rs
+++ b/src/commandline/command.rs
@@ -1,8 +1,8 @@
-use std::io::{Error};
-use std::path::{PathBuf};
-use std::process::ExitStatus;
-use std::process::Command as Process;
use super::builtins::{cd, set, unset};
+use std::io::Error;
+use std::path::PathBuf;
+use std::process::Command as Process;
+use std::process::ExitStatus;
// > overwrite
// >> append
@@ -16,7 +16,11 @@ enum Redirect {
}
#[derive(Debug, PartialEq, Copy, Clone)]
-pub(in crate::commandline) enum RunIf { Always, ExitSuccess, ExitFailure }
+pub(in crate::commandline) enum RunIf {
+ Always,
+ ExitSuccess,
+ ExitFailure,
+}
impl RunIf {
pub(in crate::commandline) fn can_run(&self, status: &Option<ExitStatus>) -> bool {