czg --config
Synopsis
czg --config=<file path> - Specify the configuration file to use
Description
czg will automatically configure the current project root path or $HOME path of the configuration file
But if you need to specify path a configuration file, you can use this option
e.g: czg --config="./config/cz.json"
json
// config/cz.json
{
"$schema": "https://raw.githubusercontent.com/Zhengqbbb/cz-git/refs/tags/v1.12.0/docs/public/schema/cz-git.json",
"maxSubjectLength": 100
// configure ...
}// config/cz.json
{
"$schema": "https://raw.githubusercontent.com/Zhengqbbb/cz-git/refs/tags/v1.12.0/docs/public/schema/cz-git.json",
"maxSubjectLength": 100
// configure ...
}e.g czg --config="./config/cz.js"
js
// config/cz.js
const { definePrompt } = require('czg')
module.exports = definePrompt({
maxSubjectLength: 100
// configure ...
})// config/cz.js
const { definePrompt } = require('czg')
module.exports = definePrompt({
maxSubjectLength: 100
// configure ...
})TIP
czg supports configuration item. ⇒ see the configuration guideczg default configure. ⇒ see the configuration template
cz-git