Added descriptions to the commands

This commit is contained in:
StNicolay 2023-05-07 14:49:53 +03:00
parent bc08ebed03
commit 2fb6fbe6a3
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D

View File

@ -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,
}