diff --git a/src/command/builtins.rs b/src/command/builtins.rs index dc3524c..f192b69 100644 --- a/src/command/builtins.rs +++ b/src/command/builtins.rs @@ -31,3 +31,7 @@ pub(super) fn cd(args: &Vec) -> ExitCode { exit_code } + +pub(super) fn colon(_args: &Vec) -> ExitCode { + ExitCode::success() +} diff --git a/src/command/mod.rs b/src/command/mod.rs index 7ae6c22..23d2b3a 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -24,8 +24,9 @@ impl Builtin { let mut args = argv.clone(); let program = args.remove(0); - let function = match program.as_str() { + let function: Option = match program.as_str() { "cd" => Some(builtins::cd), + ":" => Some(builtins::colon), _ => None, };