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>>>>;
|
||||
|
||||
#[derive(BotCommands, Clone, Copy)]
|
||||
#[command(rename_rule = "snake_case")]
|
||||
#[command(
|
||||
rename_rule = "snake_case",
|
||||
description = "These commands are supported:"
|
||||
)]
|
||||
enum Command {
|
||||
#[command()]
|
||||
#[command(description = "displays this text")]
|
||||
Help,
|
||||
#[command()]
|
||||
AddAccount,
|
||||
#[command()]
|
||||
GetAccount,
|
||||
#[command()]
|
||||
GetAccounts,
|
||||
#[command()]
|
||||
#[command(description = "sets the master password")]
|
||||
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,
|
||||
#[command()]
|
||||
#[command(description = "deletes all the accounts and the master password")]
|
||||
DeleteAll,
|
||||
#[command()]
|
||||
#[command(description = "exports all the accounts in a json file")]
|
||||
Export,
|
||||
#[command()]
|
||||
#[command(description = "loads the accounts from a json file")]
|
||||
Import,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user