UNPKG

1.19 kBTypeScriptView Raw
1import Command, { flags as commandFlags } from '@oclif/command';
2export interface IRtolmsConfig {
3 reposDir: string;
4 authToken: string;
5 username: string;
6 server?: string;
7 database?: string;
8 maildrop?: string;
9}
10export default abstract class BaseCommand extends Command {
11 static flags: {
12 help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
13 'core-repo-name': commandFlags.IOptionFlag<string>;
14 'custom-repo-regex': commandFlags.IOptionFlag<string>;
15 'custom-repo-shortname-regex': commandFlags.IOptionFlag<string>;
16 };
17 flags: any;
18 args: any;
19 getConfigPath(): string;
20 getConfig(): Promise<IRtolmsConfig>;
21 getConfigDefaults(): Promise<any>;
22 configExists(): boolean;
23 requireConfig(): Promise<IRtolmsConfig>;
24 fuzzyMatchCustomDir: (partialCustomName?: string) => Promise<string | void>;
25 getCorePath: () => Promise<string>;
26 getCoreCustomSubdirPath: () => Promise<string>;
27 getCustomRepos: () => Promise<string[]>;
28 getCurrentlyLinkedCustomDir: () => Promise<string | void>;
29 promptForCustomerDir: () => Promise<string>;
30 init(): Promise<void>;
31 finally(): Promise<any>;
32}