diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-02-15 23:33:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-15 23:33:30 +0000 |
| commit | 41f072a8b443b5a404916598f0c9b7a52f5c05fb (patch) | |
| tree | 449643847a5fee7c290976075a2f6fb36547aca0 /src/command/mod.rs | |
| parent | Satisfy clippy (diff) | |
| download | atuin-41f072a8b443b5a404916598f0c9b7a52f5c05fb.zip | |
Add init command (#12)
* Add init command
This makes setting up the shell part of A'tuin much easier. Eval the
output of "atuin init".
* Update readme, add up binding
Diffstat (limited to 'src/command/mod.rs')
| -rw-r--r-- | src/command/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/mod.rs b/src/command/mod.rs index 78e55a0d..0952540b 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -6,6 +6,7 @@ use crate::local::database::Database; mod history; mod import; +mod init; mod server; mod stats; @@ -26,6 +27,9 @@ pub enum AtuinCmd { #[structopt(about = "calculate statistics for your history")] Stats(stats::Cmd), + #[structopt(about = "output shell setup")] + Init, + #[structopt(about = "generates a UUID")] Uuid, } @@ -41,6 +45,7 @@ impl AtuinCmd { Self::Import(import) => import.run(db), Self::Server(server) => server.run(), Self::Stats(stats) => stats.run(db), + Self::Init => init::init(), Self::Uuid => { println!("{}", uuid_v4()); |
