Skip to main content

Type Alias: VersionInfo

VersionInfo: object | object & object

Methods to determine application version information for --version flag or latest version check.

Type declaration​

getLatestVersion()?​

readonly optional getLatestVersion: (this, currentVersion) => Promise<string | undefined>

Asynchonously determine the latest version of this application. If value is retrieved from cache, a change to the current version should invalidate that cache.

Parameters​

• this: CommandContext

• currentVersion: string

Returns​

Promise<string | undefined>

upgradeCommand?​

readonly optional upgradeCommand: string

Command to display to the end user that will upgrade this application. Passed to ApplicationText.currentVersionIsNotLatest to format/localize.

Defined in​

packages/core/src/config.ts:12