xref: /NovaShell/src/shell/command/help.rs (revision 3594c29fd3721c2bcba76920f443be1494d88afc)
1 pub struct Help {}
2 
3 impl Help {
4     pub fn shell_help(cmd: &str) {
5         match cmd {
6             "cd" => Self::shell_help_cd(),
7             "exec" => Self::shell_help_exec(),
8             "reboot" => Self::shell_help_reboot(),
9             "compgen" => Self::shell_help_compgen(),
10             "complete" => Self::shell_help_complete(),
11 
12             _ => {}
13         };
14     }
15 
16     fn shell_help_cd() {
17         println!("Usage: cd [directory]");
18     }
19 
20     fn shell_help_exec() {
21         println!("exec: exec file");
22     }
23 
24     fn shell_help_reboot() {}
25 
26     fn shell_help_compgen() {}
27 
28     fn shell_help_complete() {}
29 }
30