MCPcopy Index your code
hub / github.com/Waishnav/devspace / writeDevspaceConfig

Function writeDevspaceConfig

src/user-config.ts:67–75  ·  view source on GitHub ↗
(
  config: DevspaceUserConfig,
  env: NodeJS.ProcessEnv = process.env,
)

Source from the content-addressed store, hash-verified

65}
66
67export 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
77export function writeDevspaceAuth(
78 auth: DevspaceAuthConfig,

Callers 2

runInitFunction · 0.85
runConfigCommandFunction · 0.85

Calls 3

devspaceConfigPathFunction · 0.85
devspaceConfigDirFunction · 0.85
writeJsonFileFunction · 0.85

Tested by

no test coverage detected