1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use core::fmt::Write;
use alloc::string::String;
use alloc::vec::Vec;
use sunrise_libuser::error::Error;
use sunrise_libuser::twili::IPipeProxy;
pub static HELP: &str = "help: Print this message.";
pub fn main(_stdin: IPipeProxy, mut stdout: IPipeProxy, _stderr: IPipeProxy, _args: Vec<String>) -> Result<(), Error> {
let _ = writeln!(&mut stdout, "COMMANDS:");
for (_f, help) in super::SUBCOMMANDS.values() {
let _ = writeln!(&mut stdout, "{}", help);
}
Ok(())
}