summaryrefslogtreecommitdiffstats
path: root/src/command/mod.rs
blob: 8d463bd6712e0b836b791d558841a716e39c8742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use structopt::StructOpt;

mod history;
mod import;
mod server;

#[derive(StructOpt)]
pub enum AtuinCmd {
    #[structopt(
        about="manipulate shell history",
        aliases=&["h", "hi", "his", "hist", "histo", "histor"],
    )]
    History(history::Cmd),

    #[structopt(about = "import shell history from file")]
    Import(import::Cmd),

    #[structopt(about = "start an atuin server")]
    Server(server::Cmd),

    #[structopt(about = "generates a UUID")]
    Uuid,
}