check_for_updates

Function check_for_updates 

Source
pub async fn check_for_updates() -> Result<Option<String>>
Expand description

Check for available updates

This function checks if a newer version is available by querying the GitHub releases API.

§Returns

Returns Some(version) if an update is available, None otherwise.

§Examples

use ipfrs_cli::utils::check_for_updates;

match check_for_updates().await {
    Ok(Some(version)) => println!("Update available: {}", version),
    Ok(None) => println!("Up to date"),
    Err(e) => eprintln!("Failed to check for updates: {}", e),
}