diff --git a/src/cli-ux/prompt.ts b/src/cli-ux/prompt.ts index ab4958622..7852a8a5b 100644 --- a/src/cli-ux/prompt.ts +++ b/src/cli-ux/prompt.ts @@ -1,4 +1,4 @@ -import * as Errors from '../../src/errors' +import * as Errors from '../errors' import * as chalk from 'chalk' import config from './config' diff --git a/src/interfaces/hooks.ts b/src/interfaces/hooks.ts index b62ca48a8..0e3d0f363 100644 --- a/src/interfaces/hooks.ts +++ b/src/interfaces/hooks.ts @@ -26,11 +26,11 @@ export interface Hooks { return: void; }; preupdate: { - options: {channel: string}; + options: {channel: string, version: string}; return: void; }; update: { - options: {channel: string}; + options: {channel: string, version: string}; return: void; }; 'command_not_found': { diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index 134792722..29d7bfc3e 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -5,6 +5,7 @@ export {OclifError, PrettyPrintableError} from './errors' export {HelpOptions} from './help' export {Hook, Hooks} from './hooks' export {Manifest} from './manifest' +export {S3Manifest} from './s3-manifest' export { ParserArg, Arg, ParseFn, ParserOutput, ParserInput, ArgToken, OptionalArg, FlagOutput, OutputArgs, OutputFlags, FlagUsageOptions, diff --git a/src/interfaces/s3-manifest.ts b/src/interfaces/s3-manifest.ts new file mode 100644 index 000000000..0c18366cb --- /dev/null +++ b/src/interfaces/s3-manifest.ts @@ -0,0 +1,14 @@ +export interface S3Manifest { + version: string; + sha: string; + gz: string; + xz?: string; + sha256gz: string; + sha256xz?: string; + baseDir: string; + rollout?: number; + node: { + compatible: string; + recommended: string; + }; +}