diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2021-02-14 17:18:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-14 17:18:02 +0000 |
| commit | 72c5ea79147f7bd486839cfeb4aab62a98a0bdd2 (patch) | |
| tree | b9bfffc47dc3a8ad457bb8bd414a215eea26504e /src/main.rs | |
| parent | Neaten the history listing code (#5) (diff) | |
| download | atuin-72c5ea79147f7bd486839cfeb4aab62a98a0bdd2.zip | |
tidy some stuff (#6)
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 { |
