diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/main.rs b/src/main.rs index 022703b9..2dbeabfe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![feature(str_split_once)] #![feature(proc_macro_hygiene)] #![feature(decl_macro)] #![warn(clippy::pedantic, clippy::nursery)] @@ -15,9 +16,8 @@ extern crate log; #[macro_use] extern crate rocket; -use command::{history, import, server}; +use command::AtuinCmd; use local::database::Sqlite; -use local::history::History; mod command; mod local; @@ -37,24 +37,6 @@ struct Atuin { atuin: AtuinCmd, } -#[derive(StructOpt)] -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, -} - impl Atuin { fn run(self) -> Result<()> { let db_path = if let Some(db_path) = self.db { |