mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
50 lines
1.1 KiB
Rust
50 lines
1.1 KiB
Rust
pub mod admin;
|
|
pub mod api;
|
|
pub mod autoproxy;
|
|
pub mod commands;
|
|
pub mod config;
|
|
pub mod dashboard;
|
|
pub mod debug;
|
|
pub mod fun;
|
|
pub mod group;
|
|
pub mod help;
|
|
pub mod import_export;
|
|
pub mod member;
|
|
pub mod message;
|
|
pub mod misc;
|
|
pub mod random;
|
|
pub mod server_config;
|
|
pub mod switch;
|
|
pub mod system;
|
|
|
|
pub mod utils;
|
|
|
|
use command_parser::{
|
|
command,
|
|
command::Command,
|
|
parameter::{Optional, Parameter, ParameterKind::*, Remainder, Skip},
|
|
tokens,
|
|
};
|
|
|
|
pub fn all() -> impl Iterator<Item = Command> {
|
|
(help::cmds())
|
|
.chain(system::cmds())
|
|
.chain(group::cmds())
|
|
.chain(member::cmds())
|
|
.chain(config::cmds())
|
|
.chain(fun::cmds())
|
|
.chain(switch::cmds())
|
|
.chain(random::cmds())
|
|
.chain(api::cmds())
|
|
.chain(autoproxy::cmds())
|
|
.chain(debug::cmds())
|
|
.chain(message::cmds())
|
|
.chain(import_export::cmds())
|
|
.map(|cmd| {
|
|
cmd.hidden_flag(("plaintext", ["pt"]))
|
|
.hidden_flag(("raw", ["r"]))
|
|
.hidden_flag(("show-embed", ["se"]))
|
|
})
|
|
}
|
|
|
|
pub const RESET: (&str, [&str; 2]) = ("reset", ["clear", "default"]);
|