mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
better parameters handling, implement import export
This commit is contained in:
parent
e4f38c76a9
commit
5198f7d83b
19 changed files with 250 additions and 174 deletions
|
|
@ -19,7 +19,12 @@ pub mod system;
|
|||
|
||||
pub mod utils;
|
||||
|
||||
use command_parser::{command, command::Command, parameter::ParameterKind::*, tokens};
|
||||
use command_parser::{
|
||||
command,
|
||||
command::Command,
|
||||
parameter::{Optional, Parameter, ParameterKind::*, Remainder, Skip},
|
||||
tokens,
|
||||
};
|
||||
|
||||
pub fn all() -> impl Iterator<Item = Command> {
|
||||
(help::cmds())
|
||||
|
|
@ -34,6 +39,7 @@ pub fn all() -> impl Iterator<Item = Command> {
|
|||
.chain(autoproxy::cmds())
|
||||
.chain(debug::cmds())
|
||||
.chain(message::cmds())
|
||||
.chain(import_export::cmds())
|
||||
.map(|cmd| {
|
||||
cmd.hidden_flag(("plaintext", ["pt"]))
|
||||
.hidden_flag(("raw", ["r"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue