From bb02a070f955ec8f42406f5e86235e6d8ca01080 Mon Sep 17 00:00:00 2001 From: Lux Aliaga Date: Mon, 21 Aug 2023 13:41:41 -0400 Subject: [PATCH] help: Deprecate in favor of Clap Since Clap integrates its own help page, help.rs is not necessary anymore. Remove it. --- src/help.rs | 96 ----------------------------------------------------- src/lib.rs | 1 - 2 files changed, 97 deletions(-) delete mode 100644 src/help.rs diff --git a/src/help.rs b/src/help.rs deleted file mode 100644 index b6f4f09..0000000 --- a/src/help.rs +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Vento, a CLI inventory for your files. - * Copyright (C) 2022 Lux Aliaga - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -use anyhow::Result; -use colored::Colorize; - -/// Displays the help message for the vento command -pub fn vento() -> Result<()> { - println!( - "{}, a CLI inventory for your files -© 2022-2023 Lux Aliaga. Licensed under GPLv3 - -{} - - {}: Lists files in selected inventory - - {}: Switches slots - - {}: Undoes the last action - - {}: Exports an inventory - - {}: Exports the Vento directory - - {}: Imports an inventory archive - - {}: Imports a Vento directory archive - - {}: Initializes Vento - - {}: Displays this message", - "Vento".bold().blue(), - "Usage:".bold(), - "vento [ -s slot | --slot=slot ] [ directory ]" - .bold() - .green(), - "vento ( -c | --switch )".bold().green(), - "vento ( -u | --undo )".bold().green(), - "vento ( -e | --export-inv ) [ slot ] [ output ]" - .bold() - .green(), - "vento ( -E | --export-dir ) [ output ]".bold().green(), - "vento ( -g | --import-inv ) [ input ] [ slot ]" - .bold() - .green(), - "vento ( -G | --import-dir ) [ input ]".bold().green(), - "vento ( -i | --init )".bold().green(), - "vento ( -h | --help )".bold().green() - ); - Ok(()) -} - -/// Displays the help message for the take command -pub fn take() -> Result<()> { - println!( - "{}, a file grabber for Vento -© 2022-2023 Lux Aliaga. Licensed under GPLv3 - -{} - - {}: Takes a file and saves it in the inventory - - {}: Displays this message", - "Take".bold().blue(), - "Usage:".bold(), - "take [ -s slot | --slot=slot ] file | directory" - .bold() - .green(), - "take ( -h | --help )".bold().green() - ); - Ok(()) -} - -/// Displays the help message for the drop command -pub fn drop() -> Result<()> { - println!( - "{}, a file dropper for Vento -© 2022-2023 Lux Aliaga. Licensed under GPLv3 - -{} - - {}: Takes a file off the inventory and drops it - - {}: Displays this message", - "Drop".bold().blue(), - "Usage:".bold(), - "drop [ -s slot | --slot=slot ] file | directory [destination]" - .bold() - .green(), - "drop ( -h | --help )".bold().green() - ); - Ok(()) -} diff --git a/src/lib.rs b/src/lib.rs index 06fb436..cc150a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,6 @@ pub mod archive; pub mod common; -pub mod help; pub mod history; pub mod inv; pub mod item;