leoforfree / cz-customizable

A standalone commit message helper or customizable commitizen adapter for https://github.com/commitizen/cz-cli
MIT License
609 stars 200 forks source link

Manually specify the configuration file path at startup #230

Open adolphor opened 9 months ago

adolphor commented 9 months ago

I'm trying to use cz-customizable for Java project, which not contains package.json configuration. So I set the global git hooks for all the Java projects.

So I was wondering,

commitlint can set config parameter at startup: npx commitlint --config /my/path/commitlint.config.js

Could cz-customizable running like as below ? npx cz-customizable --config /my/path/.cz-config.js

If not, how could I solve the problem?