aws-cdk
Version:
AWS CDK CLI, the command line tool for CDK apps
14 lines (13 loc) • 666 B
TypeScript
export declare function displayVersion(): string;
export declare function isDeveloperBuild(): boolean;
export declare function versionNumber(): string;
export declare class VersionCheckTTL {
static timestampFilePath(): string;
private readonly file;
private readonly ttlSecs;
constructor(file?: string, ttlSecs?: number);
hasExpired(): Promise<boolean>;
update(latestVersion?: string): Promise<void>;
}
export declare function getVersionMessages(currentVersion: string, cacheFile: VersionCheckTTL): Promise<string[]>;
export declare function displayVersionMessage(currentVersion?: string, versionCheckCache?: VersionCheckTTL): Promise<void>;