MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getConfigDir

Function getConfigDir

sdk/src/credentials.ts:53–60  ·  view source on GitHub ↗
(clientEnv: ClientEnv = env)

Source from the content-addressed store, hash-verified

51 * Uses the clientEnv to determine the environment suffix.
52 */
53export const getConfigDir = (clientEnv: ClientEnv = env): string => {
54 const envSuffix =
55 clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT &&
56 clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT !== 'prod'
57 ? `-${clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT}`
58 : ''
59 return path.join(os.homedir(), '.config', `manicode${envSuffix}`)
60}
61
62/**
63 * Get the credentials file path based on the environment.

Callers 3

getCredentialsPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected