2025-01-04 07:35:04 +09:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
pub fn cmds() -> impl Iterator<Item = Command> {
|
2025-01-05 00:59:59 +09:00
|
|
|
let system = ["system", "s"];
|
|
|
|
|
let new = ["new", "n"];
|
2025-01-04 07:35:04 +09:00
|
|
|
|
2025-01-21 12:36:54 +09:00
|
|
|
let system_new = tokens!(system, new);
|
|
|
|
|
|
2025-01-04 07:35:04 +09:00
|
|
|
[
|
2025-01-21 12:36:54 +09:00
|
|
|
command!([system] => "system_show").help("Shows information about your system"),
|
|
|
|
|
command!(system_new => "system_new").help("Creates a new system"),
|
|
|
|
|
command!(system_new, ("name", OpaqueString) => "system_new_name")
|
|
|
|
|
.help("Creates a new system (using the provided name)"),
|
2025-01-04 07:35:04 +09:00
|
|
|
]
|
|
|
|
|
.into_iter()
|
|
|
|
|
}
|