diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-03-30 06:45:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 06:45:49 +0100 |
commit | 0d16a113c5fc9da7bb75f8c771714f4e00449f19 (patch) | |
tree | 87e7bb841f5e9cc2ffa0dd3d5492c0a4648b4db7 /atuin-server | |
parent | ca5e58ad0191fed6000433c1e56f7d0c555653e6 (diff) |
Add `atuin status` (#830)
Useful for debugging, checking the state of things, and for if you
forget your username!
Diffstat (limited to 'atuin-server')
-rw-r--r-- | atuin-server/src/handlers/status.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atuin-server/src/handlers/status.rs b/atuin-server/src/handlers/status.rs index 090d2c3dd..351c2dd29 100644 --- a/atuin-server/src/handlers/status.rs +++ b/atuin-server/src/handlers/status.rs @@ -31,5 +31,9 @@ pub async fn status<DB: Database>( }, }; - Ok(Json(StatusResponse { count, deleted })) + Ok(Json(StatusResponse { + count, + deleted, + username: user.username, + })) } |