implement rest of api (tokens) commands

This commit is contained in:
dusk 2025-10-01 14:06:29 +00:00
parent d2807f402d
commit c42385f01c
No known key found for this signature in database
3 changed files with 11 additions and 5 deletions

View file

@ -1 +1,9 @@
use super::*;
pub fn cmds() -> impl Iterator<Item = Command> {
[
command!("token" => "token_display"),
command!("token", ("refresh", ["renew", "regen", "reroll"]) => "token_refresh"),
]
.into_iter()
}

View file

@ -31,6 +31,7 @@ pub fn all() -> impl Iterator<Item = Command> {
.chain(fun::cmds())
.chain(switch::cmds())
.chain(random::cmds())
.chain(api::cmds())
.map(|cmd| {
cmd.hidden_flag(("plaintext", ["pt"]))
.hidden_flag(("raw", ["r"]))