purple-ssh 2.43.2

Open-source terminal SSH manager and SSH config editor. Search hundreds of hosts, sync from 16 clouds, transfer files, manage Docker and Podman over SSH, sign short-lived Vault SSH certs and expose an MCP server for AI agents. Rust TUI, MIT licensed.
Documentation
/// Update availability state.
///
/// `hint` defaults to `""` via `#[derive(Default)]`. In practice `App::new()`
/// always overwrites it with the detected install method, so the empty default
/// is only visible when constructing `UpdateState` in isolation (e.g. tests).
#[derive(Default)]
pub struct UpdateState {
    /// Available version string (None if up to date or unchecked).
    pub available: Option<String>,
    /// Update announcement headline.
    pub headline: Option<String>,
    /// Update hint string (install command suggestion).
    pub hint: &'static str,
}

impl UpdateState {
    /// Construct with the current install-method hint detected at runtime.
    pub fn with_current_hint() -> Self {
        Self {
            hint: crate::update::update_hint(),
            ..Self::default()
        }
    }
}