mirror of https://git.sr.ht/~nixgoat/vento
help: Deprecate in favor of Clap
Since Clap integrates its own help page, help.rs is not necessary anymore. Remove it.
This commit is contained in:
parent
a841ba974c
commit
bb02a070f9
96
src/help.rs
96
src/help.rs
|
@ -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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
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(())
|
||||
}
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
pub mod archive;
|
||||
pub mod common;
|
||||
pub mod help;
|
||||
pub mod history;
|
||||
pub mod inv;
|
||||
pub mod item;
|
||||
|
|
Loading…
Reference in New Issue