Skip to main content

logout

Function logout 

Source
pub fn logout() -> Result<()>
Expand description

Logout - clear stored auth.

Core-layer function: does the filesystem work and returns. User-facing messaging is the caller’s job — this was previously println!-ing “Logged out successfully” directly, which bypassed the TUI renderer and bled into the input box area on next repaint, and also produced a duplicate line in CLI mode where handle_command prints its own confirmation. No Err distinguishes “file absent” from “file removed” — both are success from the user’s perspective (“you’re logged out”).