trigger-qconf
v0.2.1
Published
get all the values in the config file
Downloads
4
Readme
trigger-qconf
get all the values in the config file.
Install
# npm
npm i -g trigger-qconf
# yarn
yarn global add trigger-qconf
qconf-map file
module.exports = {
// mysql key
// host: slave, master
// conf: username, password
mysql: {
// 1:conf string
some_mysql: 'mysql_path_string',
// 2: object that has a `qconf` attribute
some_mysql: {
qconf: 'mysql_path_string',
}
},
// conf key: conf or kafka
conf: {
some_conf: 'conf_path_string',
},
kafka: {
some_conf: 'conf_path_string',
},
// host key
host: {
some_host: 'host_path_string',
},
redis: {
some_host: 'host_path_string',
},
}
Usage
# flag: production
trigger-qconf file-path [flag]
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
trigger-qconf © ELEVEN, Released under the MIT License. Authored and maintained by ELEVEN with help from contributors (list).
github.com/ryli · GitHub @ELEVEN · Twitter @ryliweb