forked from firebase/firebase-tools
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.ts
39 lines (34 loc) · 972 Bytes
/
options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Config } from "./config";
import { RC } from "./rc";
// Options come from command-line options and stored config values
// TODO: actually define all of this stuff in command.ts and import it from there.
export interface BaseOptions {
cwd: string;
configPath: string;
only: string;
except: string;
config: Config;
filteredTargets: string[];
force: boolean;
// Options which are present on every command
project?: string;
projectAlias?: string;
projectId?: string;
projectNumber?: string;
projectRoot?: string;
account?: string;
json: boolean;
nonInteractive: boolean;
interactive: boolean;
debug: boolean;
rc: RC;
// Emulator specific import/export options
exportOnExit?: boolean | string;
import?: string;
}
export interface Options extends BaseOptions {
// TODO(samstern): Remove this once options is better typed
[key: string]: unknown;
// whether it's coming from the VS Code Extension
isVSCE?: true;
}