MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isFirstRun

Function isFirstRun

out/cli.cjs:86804–86815  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86802 )} Configuration saved to ~/.opencommit
86803
86804 Run ${source_default.cyan(
86805 "oco"
86806 )} to generate commit messages!`
86807 );
86808 return true;
86809}
86810function isFirstRun() {
86811 const hasGlobalConfig = getIsGlobalConfigFileExist();
86812 const config8 = getConfig();
86813 const provider = config8.OCO_AI_PROVIDER || "openai" /* OPENAI */;
86814 if (provider === "test" /* TEST */) {
86815 return false;
86816 }
86817 const hasRequiredConfig = MODEL_REQUIRED_PROVIDERS.includes(
86818 provider

Callers 1

cli.cjsFile · 0.70

Calls 3

includesMethod · 0.80
getConfigFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…