diff options
Diffstat (limited to 'crates/atuin/src/command/client/dotfiles.rs')
-rw-r--r-- | crates/atuin/src/command/client/dotfiles.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crates/atuin/src/command/client/dotfiles.rs b/crates/atuin/src/command/client/dotfiles.rs new file mode 100644 index 00000000..291c794d --- /dev/null +++ b/crates/atuin/src/command/client/dotfiles.rs @@ -0,0 +1,22 @@ +use clap::Subcommand; +use eyre::Result; + +use atuin_client::{record::sqlite_store::SqliteStore, settings::Settings}; + +mod alias; + +#[derive(Subcommand, Debug)] +#[command(infer_subcommands = true)] +pub enum Cmd { + /// Manage shell aliases with Atuin + #[command(subcommand)] + Alias(alias::Cmd), +} + +impl Cmd { + pub async fn run(self, settings: &Settings, store: SqliteStore) -> Result<()> { + match self { + Self::Alias(cmd) => cmd.run(settings, store).await, + } + } +} |