refactor: separate commands into command_parser, command_definitions crates

This commit is contained in:
dusk 2025-01-21 04:31:03 +09:00
parent 4f390e2a14
commit 0c012e98b5
No known key found for this signature in database
33 changed files with 464 additions and 378 deletions

View file

@ -0,0 +1,14 @@
use super::*;
pub fn cmds() -> impl Iterator<Item = Command> {
let system = ["system", "s"];
let new = ["new", "n"];
[
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::SINGLE)], "system_new")
.help("Creates a new system"),
]
.into_iter()
}