UNPKG

1.67 kBTypeScriptView Raw
1import Command, { flags } from '@oclif/command';
2import * as Case from 'case';
3import * as colors from 'colors/safe';
4import * as inquirer from 'inquirer';
5import { AuthConfig, BaseConfig } from './types';
6import Locator from './utils/locator';
7import { Config } from './utils/setup-config';
8export default abstract class extends Command {
9 constants: BaseConfig;
10 bearerConfig: Config;
11 silent: boolean;
12 readonly locator: Locator;
13 readonly inquirer: inquirer.Inquirer;
14 readonly copy: (inDir: string, outDir: string, vars: Record<string, string>, callBack: CopycallBack) => void;
15 readonly case: typeof Case;
16 readonly ux: any;
17 readonly colors: typeof colors;
18 readonly integrationAuthConfig: AuthConfig;
19 readonly hasViews: boolean;
20 static flags: {
21 help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
22 path: flags.IOptionFlag<string | undefined>;
23 silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
24 };
25 success(message: string): void;
26 log(_message?: string, ..._args: any[]): void;
27 warn(_input: string | Error): void;
28 readonly devPortalClient: {
29 request: <DataReturned>(data: {
30 query: string;
31 variables?: any;
32 }) => Promise<import("axios").AxiosResponse<{
33 data?: DataReturned | undefined;
34 }>>;
35 };
36 init(): Promise<void>;
37 /**
38 * Interactivity helpers
39 */
40 protected askForString(phrase: string, options?: Options): Promise<string>;
41}
42declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
43export declare type Options = Partial<Omit<inquirer.Question, 'message' | 'name'>>;
44export {};