1pub mod auto_refresh;
2pub mod current;
3pub mod login;
4pub mod output;
5pub mod refresh;
6pub mod remove;
7pub mod save;
8pub mod sync;
9pub mod use_secret;
10
11use anyhow::Result;
12use std::path::Path;
13
14pub fn identity_from_auth_file(path: &Path) -> Result<Option<String>> {
15 crate::runtime::auth::identity_from_auth_file(path).map_err(anyhow::Error::from)
16}
17
18pub fn email_from_auth_file(path: &Path) -> Result<Option<String>> {
19 crate::runtime::auth::email_from_auth_file(path).map_err(anyhow::Error::from)
20}
21
22pub fn account_id_from_auth_file(path: &Path) -> Result<Option<String>> {
23 crate::runtime::auth::account_id_from_auth_file(path).map_err(anyhow::Error::from)
24}
25
26pub fn last_refresh_from_auth_file(path: &Path) -> Result<Option<String>> {
27 crate::runtime::auth::last_refresh_from_auth_file(path).map_err(anyhow::Error::from)
28}
29
30pub fn identity_key_from_auth_file(path: &Path) -> Result<Option<String>> {
31 crate::runtime::auth::identity_key_from_auth_file(path).map_err(anyhow::Error::from)
32}