mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
add missing help text and redo the existing ones based on CommandHelp.cs
This commit is contained in:
parent
bdf6a6c345
commit
e2b354aae1
14 changed files with 142 additions and 99 deletions
|
|
@ -17,13 +17,23 @@ pub fn cmds() -> impl IntoIterator<Item = Command> {
|
|||
];
|
||||
|
||||
[
|
||||
command!(switch, ("commands", ["help"]) => "switch_commands"),
|
||||
command!(switch, out => "switch_out"),
|
||||
command!(switch, delete => "switch_delete").flag(("all", ["clear", "c"])),
|
||||
command!(switch, r#move, Remainder(OpaqueString) => "switch_move"), // TODO: datetime parsing
|
||||
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, MemberRefs => "switch_do"),
|
||||
command!(switch, ("commands", ["help"]) => "switch_commands")
|
||||
.help("Shows help for switch commands"),
|
||||
command!(switch, out => "switch_out").help("Registers a switch with no members"),
|
||||
command!(switch, delete => "switch_delete")
|
||||
.help("Deletes the latest switch")
|
||||
.flag(("all", ["clear", "c"])),
|
||||
command!(switch, r#move, Remainder(OpaqueString) => "switch_move")
|
||||
.help("Moves the latest switch in time"), // TODO: datetime parsing
|
||||
command!(switch, edit, out => "switch_edit_out")
|
||||
.help("Turns the latest switch into a switch-out")
|
||||
.flag(YES),
|
||||
command!(switch, edit, Optional(MemberRefs) => "switch_edit")
|
||||
.help("Edits the members in the latest switch")
|
||||
.flags(edit_flags),
|
||||
command!(switch, copy, Optional(MemberRefs) => "switch_copy")
|
||||
.help("Makes a new switch with the listed members added")
|
||||
.flags(edit_flags),
|
||||
command!(switch, MemberRefs => "switch_do").help("Registers a switch"),
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue