Skip to content

hasAnyConfig

hasAnyConfig(commandLineConfigOverrides): Promise<boolean>

Defined in: core/dist/config/loader.d.ts:129

CFG-10 — true when ANY usable configuration is present, either a project config file (json/jsonc/js/mjs) or a standalone global config (~/.gsloth/.gsloth.config.*). When this returns false the caller should run the first-run dialog instead of erroring.

Reuses CFG-8’s project + global detection so the two paths can never disagree.

CommandLineConfigOverrides

Promise<boolean>