|
@ -5,6 +5,7 @@ use once_cell::unsync::Lazy; |
|
|
mod cd;
|
|
|
mod cd;
|
|
|
mod change_prompt;
|
|
|
mod change_prompt;
|
|
|
mod exit;
|
|
|
mod exit;
|
|
|
|
|
|
mod pwd;
|
|
|
|
|
|
|
|
|
pub struct BuiltinConfig {
|
|
|
pub struct BuiltinConfig {
|
|
|
pub prompt_style: PromptStyle,
|
|
|
pub prompt_style: PromptStyle,
|
|
@ -27,6 +28,7 @@ const BUILTINS: Lazy<Vec<(&str, Box<dyn Builtin>)>> = Lazy::new(|| { |
|
|
("cd", Box::new(cd::Cd)),
|
|
|
("cd", Box::new(cd::Cd)),
|
|
|
("change-prompt", Box::new(change_prompt::ChangePrompt)),
|
|
|
("change-prompt", Box::new(change_prompt::ChangePrompt)),
|
|
|
("exit", Box::new(exit::Exit)),
|
|
|
("exit", Box::new(exit::Exit)),
|
|
|
|
|
|
("pwd", Box::new(pwd::Pwd)),
|
|
|
]
|
|
|
]
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|