1 | import Command, { flags } from '@oclif/command';
|
2 | import * as Case from 'case';
|
3 | import * as colors from 'colors/safe';
|
4 | import * as inquirer from 'inquirer';
|
5 | import { AuthConfig, BaseConfig } from './types';
|
6 | import Locator from './utils/locator';
|
7 | import { Config } from './utils/setup-config';
|
8 | export 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 |
|
39 |
|
40 | protected askForString(phrase: string, options?: Options): Promise<string>;
|
41 | }
|
42 | declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
|
43 | export declare type Options = Partial<Omit<inquirer.Question, 'message' | 'name'>>;
|
44 | export {};
|