|
@ -7,13 +7,13 @@ mod change_prompt; |
|
|
mod exit;
|
|
|
mod exit;
|
|
|
mod fetch;
|
|
|
mod fetch;
|
|
|
mod help;
|
|
|
mod help;
|
|
|
|
|
|
mod logout;
|
|
|
mod ls;
|
|
|
mod ls;
|
|
|
mod open;
|
|
|
mod open;
|
|
|
mod pwd;
|
|
|
mod pwd;
|
|
|
mod quote;
|
|
|
mod quote;
|
|
|
mod segfault;
|
|
|
mod segfault;
|
|
|
mod sus;
|
|
|
mod sus;
|
|
|
mod logout;
|
|
|
|
|
|
|
|
|
|
|
|
pub struct BuiltinConfig {
|
|
|
pub struct BuiltinConfig {
|
|
|
pub prompt_style: PromptStyle,
|
|
|
pub prompt_style: PromptStyle,
|
|
@ -38,13 +38,13 @@ const BUILTINS: Lazy<Vec<(&str, Box<dyn Builtin>)>> = Lazy::new(|| { |
|
|
("exit", Box::new(exit::Exit)),
|
|
|
("exit", Box::new(exit::Exit)),
|
|
|
("fetch", Box::new(fetch::Fetch)),
|
|
|
("fetch", Box::new(fetch::Fetch)),
|
|
|
("help", Box::new(help::Help)),
|
|
|
("help", Box::new(help::Help)),
|
|
|
|
|
|
("logout", Box::new(logout::Logout)),
|
|
|
("ls", Box::new(ls::Ls)),
|
|
|
("ls", Box::new(ls::Ls)),
|
|
|
("open", Box::new(open::Open)),
|
|
|
("open", Box::new(open::Open)),
|
|
|
("pwd", Box::new(pwd::Pwd)),
|
|
|
("pwd", Box::new(pwd::Pwd)),
|
|
|
|
|
|
("quote", Box::new(quote::Quote)),
|
|
|
("segfault", Box::new(segfault::Segfault)),
|
|
|
("segfault", Box::new(segfault::Segfault)),
|
|
|
("sus", Box::new(sus::Sus)),
|
|
|
("sus", Box::new(sus::Sus)),
|
|
|
("quote", Box::new(quote::Quote)),
|
|
|
|
|
|
("logout", Box::new(logout::Logout)),
|
|
|
|
|
|
]
|
|
|
]
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|