Skip to main content

maybe_notify

Function maybe_notify 

Source
pub async fn maybe_notify(config: &Config, command: &Commands) -> Result<()>
Expand description

Runs the background version check for command, unless command is one that already does its own forced fetch (shine update, shine self upgrade) or otherwise shouldn’t be gated on it (shine self install should stay available even when the current binary is version-gated).

A check failure must never fail the user’s command: network errors, GitHub API errors, and the like are swallowed silently here, same as before this was extracted from main.rs.