arch-commando 0.3.0

A fast, locate-like utility to search for commands in Arch Linux repos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

use clap::Parser;

#[derive(Parser, Debug)]
#[clap(version, about, long_about = None, after_help="NOTE: To disable colors set env flag NO_COLOR=1\n\nNOTE: Default database path is $HOME/.local/share/commando/cdb.db\n\n")]
pub struct Args {
    #[clap(value_parser, help="The command to search")]
    pub command: Option<String>,

    #[clap(short, long, value_parser, help="Create or update the database")]
    pub update: bool,

    #[clap(short, long, value_parser, help="The path of the database file to create/update or search in")]
    pub path: Option<PathBuf>,
}