2021-02-14 10:18:02 -07:00
|
|
|
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,
|
|
|
|
}
|