peach-workspace/peach-config/src/status.rs

10 lines
298 B
Rust
Raw Permalink Normal View History

2022-07-04 11:23:55 +00:00
use crate::error::PeachConfigError;
use peach_lib::sbot::init_sbot;
/// Utility function to check if sbot is running via the whoami method
2022-07-04 12:35:17 +00:00
pub async fn whoami() -> Result<String, PeachConfigError> {
let mut sbot = init_sbot().await?;
let sbot_id = sbot.whoami().await?;
Ok(sbot_id)
2022-07-04 11:23:55 +00:00
}