( config: DevspaceUserConfig, env: NodeJS.ProcessEnv = process.env, )
| 65 | } |
| 66 | |
| 67 | export function writeDevspaceConfig( |
| 68 | config: DevspaceUserConfig, |
| 69 | env: NodeJS.ProcessEnv = process.env, |
| 70 | ): string { |
| 71 | const filePath = devspaceConfigPath(env); |
| 72 | mkdirSync(devspaceConfigDir(env), { recursive: true }); |
| 73 | writeJsonFile(filePath, config, 0o600); |
| 74 | return filePath; |
| 75 | } |
| 76 | |
| 77 | export function writeDevspaceAuth( |
| 78 | auth: DevspaceAuthConfig, |
no test coverage detected