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

13 lines
342 B
Rust

use crate::error::PeachConfigError;
use crate::ChangePasswordOpts;
use peach_lib::password_utils::set_new_password;
use peach_lib::sbot::init_sbot;
use golgi::Sbot;
/// Utility function to check if sbot is running via the whoami method
pub fn whoami() -> Result<bool, PeachConfigError> {
let sbot = init_sbot()?;
sbot.whoami()
}