From 6d079b0ae386e97a495e33ecc2361d0b6bda516e Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 19 May 2024 05:29:11 +0300 Subject: [PATCH] chore: Remove unused attribute macros --- src/cli/add_command.rs | 1 - src/cli/clean_command.rs | 1 - src/cli/edit_command.rs | 1 - src/cli/export_command.rs | 1 - src/cli/gen_command.rs | 1 - src/cli/get_command.rs | 1 - src/cli/import_command.rs | 1 - src/cli/list_command.rs | 1 - src/cli/remove_command.rs | 1 - 9 files changed, 9 deletions(-) diff --git a/src/cli/add_command.rs b/src/cli/add_command.rs index e543a4b..9fa76e1 100644 --- a/src/cli/add_command.rs +++ b/src/cli/add_command.rs @@ -26,7 +26,6 @@ use crate::{ }; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Add command, used to add new vault to the vaults file pub struct Add { #[command(flatten)] diff --git a/src/cli/clean_command.rs b/src/cli/clean_command.rs index 2b95c55..85e71e1 100644 --- a/src/cli/clean_command.rs +++ b/src/cli/clean_command.rs @@ -21,7 +21,6 @@ use clap::Args; use crate::{vault::Vaults, LprsCommand, LprsError, LprsResult}; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Clean command, used to clean the vaults file (remove all vaults) pub struct Clean; diff --git a/src/cli/edit_command.rs b/src/cli/edit_command.rs index 8319f0a..c9a949a 100644 --- a/src/cli/edit_command.rs +++ b/src/cli/edit_command.rs @@ -26,7 +26,6 @@ use crate::{ }; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Edit command, used to edit the vault content pub struct Edit { /// The vault to edit, index or name diff --git a/src/cli/export_command.rs b/src/cli/export_command.rs index 65fbf8f..061785d 100644 --- a/src/cli/export_command.rs +++ b/src/cli/export_command.rs @@ -28,7 +28,6 @@ use crate::{ }; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Export command, used to export the vaults in `lprs` format or `BitWarden` /// format. The exported file will be a json file. pub struct Export { diff --git a/src/cli/gen_command.rs b/src/cli/gen_command.rs index 0dcb0b0..e466bce 100644 --- a/src/cli/gen_command.rs +++ b/src/cli/gen_command.rs @@ -21,7 +21,6 @@ use clap::Args; use crate::{vault::Vaults, LprsCommand, LprsError, LprsResult}; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Generate command, used to generate a password pub struct Gen { /// The password length diff --git a/src/cli/get_command.rs b/src/cli/get_command.rs index 7b54c69..f443a45 100644 --- a/src/cli/get_command.rs +++ b/src/cli/get_command.rs @@ -91,7 +91,6 @@ impl VaultGetField { } #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Command to get a entire vault or single field from it pub struct Get { /// Whether the index of the vault or its name diff --git a/src/cli/import_command.rs b/src/cli/import_command.rs index cce9bda..b2f9dc8 100644 --- a/src/cli/import_command.rs +++ b/src/cli/import_command.rs @@ -33,7 +33,6 @@ use crate::{ }; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Import command, used to import vaults from the exported files, `lprs` or /// `BitWarden` pub struct Import { diff --git a/src/cli/list_command.rs b/src/cli/list_command.rs index a9db358..dd5552a 100644 --- a/src/cli/list_command.rs +++ b/src/cli/list_command.rs @@ -26,7 +26,6 @@ use crate::{ }; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// List command, used to list the vaults and search pub struct List { /// Filter the select list diff --git a/src/cli/remove_command.rs b/src/cli/remove_command.rs index 934573b..872c3b9 100644 --- a/src/cli/remove_command.rs +++ b/src/cli/remove_command.rs @@ -19,7 +19,6 @@ use clap::Args; use crate::{utils, vault::Vaults, LprsCommand, LprsResult}; #[derive(Debug, Args)] -#[command(author, version, about, long_about = None)] /// Remove command, used to remove a vault from the vaults file pub struct Remove { /// The vault to remove, index or name