-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathconfig.d.ts
More file actions
21 lines (21 loc) · 886 Bytes
/
config.d.ts
File metadata and controls
21 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export interface DevContainerConfig {
workspaceFolder?: string;
remoteUser?: string;
dockerFile?: string;
context?: string;
build?: {
dockerfile?: string;
context?: string;
args?: Record<string, string>;
cacheFrom?: string | string[];
cacheTo?: string | string[];
};
runArgs?: string[];
mounts?: string[];
}
export declare function loadFromFile(filepath: string): Promise<DevContainerConfig>;
export declare function loadFromString(content: string): DevContainerConfig;
export declare function getWorkspaceFolder(config: DevContainerConfig, repoPath: string): string;
export declare function getRemoteUser(config: DevContainerConfig): string;
export declare function getDockerfile(config: DevContainerConfig): string | undefined;
export declare function getContext(config: DevContainerConfig): string | undefined;