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

@ -1,7 +1,5 @@
#![feature(iter_intersperse)]
use commands::commands as cmds;
fn main() {
let cmd = std::env::args()
.skip(1)
@ -15,7 +13,7 @@ fn main() {
CommandResult::Err { error } => println!("{error}"),
}
} else {
for command in cmds::all() {
for command in command_definitions::all() {
println!("{} - {}", command, command.help);
}
}