MCPcopy Create free account
hub / github.com/Snapchat/Valdi / saveInspectConfig

Function saveInspectConfig

npm_modules/cli/src/utils/daemonClient.ts:71–73  ·  view source on GitHub ↗
(config: InspectConfig)

Source from the content-addressed store, hash-verified

69
70const CONFIG_PATH = path.join(os.homedir(), '.valdi-inspect.json');
71
72export function loadInspectConfig(): InspectConfig {
73 try {
74 return JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf8')) as InspectConfig;
75 } catch {
76 return {};

Callers 1

inspectSelectFunction · 0.90

Calls 1

writeFileSyncMethod · 0.80

Tested by

no test coverage detected