MCPcopy
hub / github.com/di-sukharev/opencommit / printAllConfigHelp

Function printAllConfigHelp

out/cli.cjs:68423–68447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68421 Object.entries(details.values).forEach(([provider, values]) => {
68422 console.log(source_default.gray(` ${provider}:`));
68423 values.forEach((value) => {
68424 console.log(source_default.gray(` - ${value}`));
68425 });
68426 });
68427 }
68428}
68429function printAllConfigHelp() {
68430 console.log(source_default.bold("Available config parameters:"));
68431 for (const key of Object.values(CONFIG_KEYS).sort()) {
68432 const details = getConfigKeyDetails(key);
68433 let defaultValue = void 0;
68434 if (key in DEFAULT_CONFIG) {
68435 defaultValue = DEFAULT_CONFIG[key];
68436 }
68437 console.log(source_default.bold(`
68438${key}:`));
68439 console.log(source_default.gray(` Description: ${details.description}`));
68440 if (defaultValue !== void 0) {
68441 if (typeof defaultValue === "string") {
68442 console.log(source_default.gray(` Default: ${defaultValue}`));
68443 } else {
68444 console.log(source_default.gray(` Default: ${defaultValue}`));
68445 }
68446 }
68447 }
68448 console.log(
68449 source_default.yellow(
68450 '\nUse "oco config describe [PARAMETER]" to see accepted values and more details for a specific config parameter.'

Callers 1

cli.cjsFile · 0.70

Calls 4

boldMethod · 0.80
getConfigKeyDetailsFunction · 0.70
sortMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…