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

Function getConfigKeyDetails

out/cli.cjs:68285–68386  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

68283 parsedConfigValue,
68284 config8
68285 );
68286 configToSet[key] = validValue;
68287 }
68288 setGlobalConfig(mergeConfigs(configToSet, config8), globalConfigPath);
68289 ce(`${source_default.green("\u2714")} config successfully set`);
68290};
68291function getConfigKeyDetails(key) {
68292 switch (key) {
68293 case "OCO_MODEL" /* OCO_MODEL */:
68294 return {
68295 description: "The AI model to use for generating commit messages",
68296 values: MODEL_LIST
68297 };
68298 case "OCO_AI_PROVIDER" /* OCO_AI_PROVIDER */:
68299 return {
68300 description: "The AI provider to use",
68301 values: Object.values(OCO_AI_PROVIDER_ENUM)
68302 };
68303 case "OCO_PROMPT_MODULE" /* OCO_PROMPT_MODULE */:
68304 return {
68305 description: "The prompt module to use for commit message generation",
68306 values: Object.values(OCO_PROMPT_MODULE_ENUM)
68307 };
68308 case "OCO_LANGUAGE" /* OCO_LANGUAGE */:
68309 return {
68310 description: "The locale to use for commit messages",
68311 values: Object.keys(i18n)
68312 };
68313 case "OCO_TEST_MOCK_TYPE" /* OCO_TEST_MOCK_TYPE */:
68314 return {
68315 description: "The type of test mock to use",
68316 values: ["commit-message", "prompt-module-commitlint-config"]
68317 };
68318 case "OCO_ONE_LINE_COMMIT" /* OCO_ONE_LINE_COMMIT */:
68319 return {
68320 description: "One line commit message",
68321 values: ["true", "false"]
68322 };
68323 case "OCO_DESCRIPTION" /* OCO_DESCRIPTION */:
68324 return {
68325 description: "Postface a message with ~3 sentences description of the changes",
68326 values: ["true", "false"]
68327 };
68328 case "OCO_EMOJI" /* OCO_EMOJI */:
68329 return {
68330 description: "Preface a message with GitMoji",
68331 values: ["true", "false"]
68332 };
68333 case "OCO_WHY" /* OCO_WHY */:
68334 return {
68335 description: "Output a short description of why the changes were done after the commit message (default: false)",
68336 values: ["true", "false"]
68337 };
68338 case "OCO_OMIT_SCOPE" /* OCO_OMIT_SCOPE */:
68339 return {
68340 description: "Do not include a scope in the commit message",
68341 values: ["true", "false"]
68342 };

Callers 2

printConfigKeyHelpFunction · 0.70
printAllConfigHelpFunction · 0.70

Calls 2

valuesMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…