aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/mod.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2021-02-14 17:18:02 +0000
committerGitHub <noreply@github.com>2021-02-14 17:18:02 +0000
commit72c5ea79147f7bd486839cfeb4aab62a98a0bdd2 (patch)
treeb9bfffc47dc3a8ad457bb8bd414a215eea26504e /src/command/mod.rs
parentNeaten the history listing code (#5) (diff)
downloadatuin-72c5ea79147f7bd486839cfeb4aab62a98a0bdd2.zip
tidy some stuff (#6)
Diffstat (limited to 'src/command/mod.rs')
-rw-r--r--src/command/mod.rs26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/command/mod.rs b/src/command/mod.rs
index 5c36146a..8d463bd6 100644
--- a/src/command/mod.rs
+++ b/src/command/mod.rs
@@ -1,3 +1,23 @@
-pub mod history;
-pub mod import;
-pub mod server;
+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,
+}