Title: Use `ChainMap` to rewrite the cmd options <- configuration file <- default configuration chain · Issue #1672 · commitizen-tools/commitizen · GitHub
Open Graph Title: Use `ChainMap` to rewrite the cmd options <- configuration file <- default configuration chain · Issue #1672 · commitizen-tools/commitizen
X Title: Use `ChainMap` to rewrite the cmd options <- configuration file <- default configuration chain · Issue #1672 · commitizen-tools/commitizen
Description: Description As title. A ChainMap keeps more information and is easier to debug. At some point, we will need a better configuration system to fix issues like #996 mentioned. Before executing a command, we need to merge the config from con...
Open Graph Description: Description As title. A ChainMap keeps more information and is easier to debug. At some point, we will need a better configuration system to fix issues like #996 mentioned. Before executing a comma...
X Description: Description As title. A ChainMap keeps more information and is easier to debug. At some point, we will need a better configuration system to fix issues like #996 mentioned. Before executing a comma...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1672
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `ChainMap` to rewrite the cmd options \u003c- configuration file \u003c- default configuration chain","articleBody":"### Description\n\nAs title. A `ChainMap` keeps more information and is easier to debug.\n\nAt some point, we will need a better configuration system to fix issues like #996 mentioned.\n\nBefore executing a command, we need to merge the config from configuration file and the default configuration in `defaults.py`. In some scenarios, CLI arguments also have to be taken into account.\n\n\u003e Right now, if I make a plugin, I can create custom settings, but they are not typed. Would this allow plugin to declare their own settings?\n\u003e [example](https://github.com/kpn/cz-kpn/blob/main/src/cz_kpn/rules.py#L105)\n\n### Possible Solution\n\n_No response_\n\n### Additional context\n\nhttps://realpython.com/python-chainmap/#prioritizing-command-line-apps-settings\n\n### Related issues\n\n_No response_","author":{"url":"https://github.com/bearomorphism","@type":"Person","name":"bearomorphism"},"datePublished":"2025-11-22T07:52:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1672/commitizen/issues/1672"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e9496ff-6833-10fc-b7e7-46210491d038 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C6E:20FD81:3377B00:41B88CA:6975A586 |
| html-safe-nonce | bf3d0a90ba881f2b8dd87b200c0a41be2c68d16894d6ba69c627b5b8d3f8b500 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzZFOjIwRkQ4MTozMzc3QjAwOjQxQjg4Q0E6Njk3NUE1ODYiLCJ2aXNpdG9yX2lkIjoiNTA4NjI1MjU1MTc1Nzk5NzQ0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8785b4aa676450f4f8bf82f3f28c2ef01d4c66dadb73ca7fc3a2ab5811b00643 |
| hovercard-subject-tag | issue:3654152009 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16a10d91f3a46b3dc40aca3cc726ba965f8299f4005e7cb64d80f9ead0266a67/commitizen-tools/commitizen/issues/1672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16a10d91f3a46b3dc40aca3cc726ba965f8299f4005e7cb64d80f9ead0266a67/commitizen-tools/commitizen/issues/1672 |
| og:image:alt | Description As title. A ChainMap keeps more information and is easier to debug. At some point, we will need a better configuration system to fix issues like #996 mentioned. Before executing a comma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bearomorphism |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width