1use clap::Args;
2
3pub(crate) mod appdata;
4mod completion;
5mod config;
6mod encode;
7mod serve;
8mod sync;
9
10pub(crate) use completion::CompletionArgs;
11pub(crate) use config::ConfigCommand;
12pub(crate) use encode::EncodeArgs;
13pub(crate) use serve::ServeArgs;
14pub(crate) use sync::SyncArgs;
15
16#[derive(Args, Clone)]
17#[command(
18 about = "Show server, last sync, user information, and vault status.",
19 after_help = r#"Example return value:
20 {
21 "serverUrl": "https://bitwarden.example.com",
22 "lastSync": "2020-06-16T06:33:51.419Z",
23 "userEmail": "[email protected]",
24 "userId": "00000000-0000-0000-0000-000000000000",
25 "status": "locked"
26 }
27
28Notes:
29 `status` is one of:
30 - `unauthenticated` when you are not logged in
31 - `locked` when you are logged in and the vault is locked
32 - `unlocked` when you are logged in and the vault is unlocked
33"#
34)]
35pub struct StatusArgs;
36
37#[derive(Args, Clone)]
38pub struct GetFingerprintArgs {
39 #[arg(default_value = "me", help = "User ID or 'me' for current user")]
40 pub user: String,
41}