mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
make some common flags into constants
This commit is contained in:
parent
479e0a59b5
commit
f4216a83a9
10 changed files with 95 additions and 89 deletions
|
|
@ -20,7 +20,7 @@ pub fn cmds() -> impl Iterator<Item = Command> {
|
|||
command!(switch, out => "switch_out"),
|
||||
command!(switch, r#move, OpaqueString => "switch_move"), // TODO: datetime parsing
|
||||
command!(switch, delete => "switch_delete").flag(("all", ["clear", "c"])),
|
||||
command!(switch, edit, out => "switch_edit_out").flag(("yes", ["y"])),
|
||||
command!(switch, edit, out => "switch_edit_out").flag(YES),
|
||||
command!(switch, edit, Optional(MemberRefs) => "switch_edit").flags(edit_flags),
|
||||
command!(switch, copy, Optional(MemberRefs) => "switch_copy").flags(edit_flags),
|
||||
command!(switch, ("commands", ["help"]) => "switch_commands"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue