1
0
Fork 0
mirror of https://git.sr.ht/~nixgoat/vento synced 2025-07-23 13:00:55 +00:00

Compare commits

..

No commits in common. "73ef278372f143687d23d95488e159ae5ae20d99" and "343c97e92c289626b5daa7a3dbd7d02020f56332" have entirely different histories.

2 changed files with 7 additions and 11 deletions

View file

@ -48,7 +48,7 @@ fn main() -> Result<()> {
fn vento() -> Result<Page> { fn vento() -> Result<Page> {
let content = Manual::new("vento") let content = Manual::new("vento")
.about("a CLI inventory for your files") .about("a CLI inventory for your files")
.author(Author::new("Lux Aliaga").email("lux@nixgoat.me")) .author(Author::new("Lux Aliaga").email("they@mint.lgbt"))
.description("List files and directories in the currently active inventory, the files in SLOT, the files in DIRECTORY or the files in DIRECTORY in SLOT.") .description("List files and directories in the currently active inventory, the files in SLOT, the files in DIRECTORY or the files in DIRECTORY in SLOT.")
.flag( .flag(
Flag::new() Flag::new()
@ -120,7 +120,7 @@ fn vento() -> Result<Page> {
fn take() -> Result<Page> { fn take() -> Result<Page> {
let content = Manual::new("take") let content = Manual::new("take")
.about("a file grabber for Vento") .about("a file grabber for Vento")
.author(Author::new("Lux Aliaga").email("lux@nixgoat.me")) .author(Author::new("Lux Aliaga").email("they@mint.lgbt"))
.description("Take FILE and put it in the inventory.") .description("Take FILE and put it in the inventory.")
.option( .option(
Opt::new("slot") Opt::new("slot")
@ -140,7 +140,7 @@ fn take() -> Result<Page> {
fn drop() -> Result<Page> { fn drop() -> Result<Page> {
let content = Manual::new("drop") let content = Manual::new("drop")
.about("a file dropper for Vento") .about("a file dropper for Vento")
.author(Author::new("Lux Aliaga").email("lux@nixgoat.me")) .author(Author::new("Lux Aliaga").email("they@mint.lgbt"))
.description("Take FILE off the inventory and drop it in DESTINATION.") .description("Take FILE off the inventory and drop it in DESTINATION.")
.option( .option(
Opt::new("slot") Opt::new("slot")
@ -161,15 +161,11 @@ fn drop() -> Result<Page> {
fn ventotoml() -> Result<Page> { fn ventotoml() -> Result<Page> {
let content = Manual::new("vento.toml") let content = Manual::new("vento.toml")
.about("configuration file for Vento") .about("configuration file for Vento")
.author(Author::new("Lux Aliaga").email("lux@nixgoat.me")) .author(Author::new("Lux Aliaga").email("they@mint.lgbt"))
.description("This is the configuration file for the vento(1), take(1) and drop(1) utilities. Its presence and all its directives are optional. Directives prefixed with \"name.directive\" indicate a separate section in config file, denoted by brackets.") .description("This is the configuration file for the vento(1), take(1) and drop(1) utilities. Its presence and all its directives are optional.")
.custom ( .custom (
Section::new("supported directives") Section::new("supported directives")
.paragraph("directory = \"PATH\": Changes the path in which Vento's inventories are saved in.") .paragraph("directory = \"PATH\": Changes the path in which Vento's inventories are saved in.")
.paragraph("display_emoji = (true | false): Sets whether emojis will be prefixed on messages or not.")
.paragraph("display_colors = (true | false): Sets whether messages will be colored.")
.paragraph("item.display_dir = (true | false): Sets whether item actions will show the paths involved in the operation.")
.paragraph("history.display_dir = (true | false): Sets whether history actions will show the paths involved in the operation.")
) )
.custom ( .custom (
Section::new("files") Section::new("files")

View file

@ -93,7 +93,7 @@ pub fn list(slot: &str, dir: &str, display_slot: bool) -> Result<()> {
append_emoji(EmojiType::Inventory)?, append_emoji(EmojiType::Inventory)?,
format!( format!(
"No files in {}{}", "No files in {}{}",
if display_slot || !dir.is_empty() { if display_slot || dir != "" {
match slot { match slot {
"active" => slot.bold(), "active" => slot.bold(),
_ => slot.blue().bold(), _ => slot.blue().bold(),
@ -119,7 +119,7 @@ pub fn list(slot: &str, dir: &str, display_slot: bool) -> Result<()> {
append_emoji(EmojiType::Inventory)?, append_emoji(EmojiType::Inventory)?,
format!( format!(
"Files in{}{} ({}):", "Files in{}{} ({}):",
if display_slot || !dir.is_empty() { if display_slot || dir != "" {
format!( format!(
" {}", " {}",
match slot { match slot {