Added descriptions to the commands
This commit is contained in:
parent
bc08ebed03
commit
2fb6fbe6a3
@ -38,25 +38,28 @@ pub struct Handler<T> {
|
|||||||
type PackagedHandler<T> = Arc<Mutex<Option<Handler<T>>>>;
|
type PackagedHandler<T> = Arc<Mutex<Option<Handler<T>>>>;
|
||||||
|
|
||||||
#[derive(BotCommands, Clone, Copy)]
|
#[derive(BotCommands, Clone, Copy)]
|
||||||
#[command(rename_rule = "snake_case")]
|
#[command(
|
||||||
|
rename_rule = "snake_case",
|
||||||
|
description = "These commands are supported:"
|
||||||
|
)]
|
||||||
enum Command {
|
enum Command {
|
||||||
#[command()]
|
#[command(description = "displays this text")]
|
||||||
Help,
|
Help,
|
||||||
#[command()]
|
#[command(description = "sets the master password")]
|
||||||
AddAccount,
|
|
||||||
#[command()]
|
|
||||||
GetAccount,
|
|
||||||
#[command()]
|
|
||||||
GetAccounts,
|
|
||||||
#[command()]
|
|
||||||
SetMasterPass,
|
SetMasterPass,
|
||||||
#[command()]
|
#[command(description = "adds the account")]
|
||||||
|
AddAccount,
|
||||||
|
#[command(description = "gets the account")]
|
||||||
|
GetAccount,
|
||||||
|
#[command(description = "gets a list of accounts")]
|
||||||
|
GetAccounts,
|
||||||
|
#[command(description = "deletes the account")]
|
||||||
Delete,
|
Delete,
|
||||||
#[command()]
|
#[command(description = "deletes all the accounts and the master password")]
|
||||||
DeleteAll,
|
DeleteAll,
|
||||||
#[command()]
|
#[command(description = "exports all the accounts in a json file")]
|
||||||
Export,
|
Export,
|
||||||
#[command()]
|
#[command(description = "loads the accounts from a json file")]
|
||||||
Import,
|
Import,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user