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/src/handlers/status.rs | |
| parent | Update `atuin search` docs (#828) (diff) | |
| download | atuin-0d16a113c5fc9da7bb75f8c771714f4e00449f19.zip | |
Add `atuin status` (#830)
Useful for debugging, checking the state of things, and for if you
forget your username!
Diffstat (limited to 'atuin-server/src/handlers/status.rs')
| -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 090d2c3d..351c2dd2 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, + })) } |
