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: {
|
17 | config: import("cli-ux").Config;
|
18 | warn: typeof import("@oclif/errors").warn;
|
19 | error: typeof import("@oclif/errors").error;
|
20 | exit: typeof import("@oclif/errors").exit;
|
21 | readonly prompt: typeof import("cli-ux/lib/prompt").prompt;
|
22 | readonly anykey: typeof import("cli-ux/lib/prompt").anykey;
|
23 | readonly confirm: typeof import("cli-ux/lib/prompt").confirm;
|
24 | readonly action: import("cli-ux").ActionBase;
|
25 | styledObject(obj: any, keys?: string[] | undefined): void;
|
26 | readonly styledHeader: typeof import("cli-ux/lib/styled/header").default;
|
27 | readonly styledJSON: typeof import("cli-ux/lib/styled/json").default;
|
28 | readonly table: typeof import("cli-ux/lib/styled/table").table;
|
29 | readonly tree: typeof import("cli-ux/lib/styled/tree").default;
|
30 | readonly open: typeof import("cli-ux/lib/open").default;
|
31 | readonly wait: (ms?: number | undefined) => Promise<{}>;
|
32 | done(): Promise<void>;
|
33 | trace(format: string, ...args: string[]): void;
|
34 | debug(format: string, ...args: string[]): void;
|
35 | info(format: string, ...args: string[]): void;
|
36 | log(format?: string | undefined, ...args: string[]): void;
|
37 | url(text: string, uri: string, params?: {} | undefined): void;
|
38 | annotation(text: string, annotation: string): void;
|
39 | flush(): Promise<void>;
|
40 | };
|
41 | readonly colors: typeof colors;
|
42 | readonly integrationAuthConfig: AuthConfig;
|
43 | readonly hasViews: boolean;
|
44 | static flags: {
|
45 | help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
46 | path: flags.IOptionFlag<string | undefined>;
|
47 | silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
48 | };
|
49 | success(message: string): void;
|
50 | log(_message?: string, ..._args: any[]): void;
|
51 | warn(_input: string | Error): void;
|
52 | readonly devPortalClient: {
|
53 | request: <DataReturned>(data: {
|
54 | query: string;
|
55 | variables?: any;
|
56 | }) => Promise<import("axios").AxiosResponse<{
|
57 | data?: DataReturned | undefined;
|
58 | }>>;
|
59 | };
|
60 | readonly isIntegrationLocation: boolean;
|
61 | init(): Promise<void>;
|
62 | |
63 |
|
64 |
|
65 | protected askForString(phrase: string, options?: Options): Promise<string>;
|
66 | protected askForPassword(phrase: string, options?: Options): Promise<string>;
|
67 | }
|
68 | declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
|
69 | export declare type Options = Partial<Omit<inquirer.Question, 'message' | 'name'>>;
|
70 | export {};
|