aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/sync.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-03-30 06:45:49 +0100
committerGitHub <noreply@github.com>2023-03-30 06:45:49 +0100
commit0d16a113c5fc9da7bb75f8c771714f4e00449f19 (patch)
tree87e7bb841f5e9cc2ffa0dd3d5492c0a4648b4db7 /src/command/client/sync.rs
parentUpdate `atuin search` docs (#828) (diff)
downloadatuin-0d16a113c5fc9da7bb75f8c771714f4e00449f19.zip
Add `atuin status` (#830)
Useful for debugging, checking the state of things, and for if you forget your username!
Diffstat (limited to '')
-rw-r--r--src/command/client/sync.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/client/sync.rs b/src/command/client/sync.rs
index c485e240..419177a5 100644
--- a/src/command/client/sync.rs
+++ b/src/command/client/sync.rs
@@ -6,6 +6,7 @@ use atuin_client::{database::Database, settings::Settings};
mod login;
mod logout;
mod register;
+mod status;
#[derive(Subcommand)]
#[command(infer_subcommands = true)]
@@ -32,6 +33,8 @@ pub enum Cmd {
#[arg(long)]
base64: bool,
},
+
+ Status,
}
impl Cmd {
@@ -41,6 +44,7 @@ impl Cmd {
Self::Login(l) => l.run(&settings).await,
Self::Logout => logout::run(&settings),
Self::Register(r) => r.run(&settings).await,
+ Self::Status => status::run(&settings, db).await,
Self::Key { base64 } => {
use atuin_client::encryption::{encode_key, load_key};
let key = load_key(&settings).wrap_err("could not load encryption key")?;