1 | import { AxiosRequestConfig } from 'axios';
|
2 | import Command, { flags } from '@oclif/command';
|
3 | import './interceptors';
|
4 | export interface IGlobalLiaraConfig {
|
5 | 'api-token'?: string;
|
6 | }
|
7 | export interface IConfig {
|
8 | 'api-token'?: string;
|
9 | }
|
10 | export default abstract class extends Command {
|
11 | static flags: {
|
12 | help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
13 | dev: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
14 | debug: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
15 | 'api-token': flags.IOptionFlag<string | undefined>;
|
16 | };
|
17 | axiosConfig: AxiosRequestConfig;
|
18 | readGlobalConfig(): IGlobalLiaraConfig;
|
19 | catch(error: any): Promise<void>;
|
20 | setAxiosToken(config: IConfig): void;
|
21 | }
|