mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
implement parse list options and related commands
This commit is contained in:
parent
3e7898e5cc
commit
95fc7e9f60
18 changed files with 367 additions and 199 deletions
|
|
@ -1,3 +1,5 @@
|
|||
use crate::utils::get_list_flags;
|
||||
|
||||
use super::*;
|
||||
|
||||
pub fn cmds() -> impl Iterator<Item = Command> {
|
||||
|
|
@ -7,7 +9,7 @@ pub fn cmds() -> impl Iterator<Item = Command> {
|
|||
[
|
||||
command!(random => "random_self").flag(group),
|
||||
command!(system::targeted(), random => "system_random").flag(group),
|
||||
command!(group::targeted(), random => "group_random_member"),
|
||||
command!(group::targeted(), random => "group_random_member").flags(get_list_flags()),
|
||||
]
|
||||
.into_iter()
|
||||
.map(|cmd| cmd.flag(("all", ["a"])))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue