From 72c5ea79147f7bd486839cfeb4aab62a98a0bdd2 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Sun, 14 Feb 2021 17:18:02 +0000 Subject: tidy some stuff (#6) --- src/main.rs | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/main.rs') 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 { -- cgit v1.3.1