从各种参数表示中实例化模板。
configen的Python项目详细描述
*概要
project\u name=yoyodyne
fcgi\u port=9000
configen.py init.conf.template>;yoyodyne.conf
configen让我们使用python强大的
字符串格式生成配置文件(或任何相关文本),其中包含来自不同来源的
参数。
*用法
*环境变量
在shell脚本中设置一组env变量并从中调用。
env foo=bar configen template对于stdin
echo foo=bar configen template-s
env configen template-s
*json
configen template-j params.json
*yaml
*configen template-y params.yaml
*dash'-'可以为stdin
*recpie
*-genconf.sh
project_name=yoyo dyne
python=/usr/bin/python
project_root=/home/yoyo/dyne
runtime_root=/home/yoyoyo/dyne
fcgi_port=9000
user=tengu
conf.py init.t
--
*从makefile生成配置文件
导出变量并按如下方式运行配置:
--makefile
导出项目名=yoyo dyne
导出python=/usr/bin/python
导出项目根=/home/yoyoyo/dyne
导出运行时根=/home/yoyoyo/dyne
导出fcgi端口=9000
用户=tengu
yoyodyne.conf:
configen.py init.t tee$@
--
project\u name=yoyodyne
fcgi\u port=9000
configen.py init.conf.template>;yoyodyne.conf
configen让我们使用python强大的
字符串格式生成配置文件(或任何相关文本),其中包含来自不同来源的
参数。
*用法
*环境变量
在shell脚本中设置一组env变量并从中调用。
env foo=bar configen template对于stdin
echo foo=bar configen template-s
env configen template-s
*json
configen template-j params.json
*yaml
*configen template-y params.yaml
*dash'-'可以为stdin
*recpie
*-genconf.sh
project_name=yoyo dyne
python=/usr/bin/python
project_root=/home/yoyo/dyne
runtime_root=/home/yoyoyo/dyne
fcgi_port=9000
user=tengu
conf.py init.t
--
*从makefile生成配置文件
导出变量并按如下方式运行配置:
--makefile
导出项目名=yoyo dyne
导出python=/usr/bin/python
导出项目根=/home/yoyoyo/dyne
导出运行时根=/home/yoyoyo/dyne
导出fcgi端口=9000
用户=tengu
yoyodyne.conf:
configen.py init.t tee$@
--