@capgo/cli
Version:
A CLI to upload to capgo servers
22 lines (21 loc) • 839 B
TypeScript
export interface VersionCheckResult {
currentVersion: string;
latestVersion: string;
isOutdated: boolean;
majorVersion: string;
}
interface AlertsReporter {
warn: (message: string) => void;
}
/**
* True only when `current` is a valid semver strictly older than `latest`,
* so local or prerelease builds newer than npm never get an update nag.
*/
export declare function isCliOutdated(current: string, latest: string): boolean;
export declare function checkVersionStatus(): Promise<VersionCheckResult>;
/**
* Builds the update notice with a copy-paste command for the project's package manager.
*/
export declare function formatCliUpdateMessage(currentVersion: string, latestVersion: string, installCommand: string): string;
export declare function checkAlerts(reporter?: AlertsReporter): Promise<void>;
export {};