mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
refactor: separate commands into command_parser, command_definitions crates
This commit is contained in:
parent
4f390e2a14
commit
0c012e98b5
33 changed files with 464 additions and 378 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue