version
gest version: print the current version, platform info, and check for available updates.struct Command
pub struct Command;Print the current version, platform info, and check for available updates.
Implements FromArgMatches, Args, Debug.
Command::call
pub async fn call(&self, _context: &AppContext) -> Result<(), Error>Display the version banner including author, version details, and an update notice when a newer release exists on GitHub.
The banner renders immediately so slow network responses can’t block output. The GitHub release check runs concurrently and, if a newer version is found, an update notice is appended after the banner. If the check fails or the local version is already current, no update notice is shown.
| Parameter | Type | Description |
|---|---|---|
_context |
&AppContext | the application context, which this command does not use |
| returns | Result<(), Error> | Ok(()) when the command succeeds, or the error that stopped it. |
fn version_line
pub fn version_line() -> StringThe one-line version that gest --version and gest -V print.
It is gest, the version, and the marker (rahuldave), which tells this fork from the gest crate on
crates.io, a different program. gest version shows the platform, build date and revision.
| Parameter | Type | Description |
|---|---|---|
| returns | String | A line such as gest 0.6.0 (rahuldave). |