根据模版文件生成配置文件 frep

码农软件 · 软件分类 · 常用工具包 · 2019-08-13 16:57:41

软件介绍

frep 是一个根据模版文件生成相应的配置文件功能,相关数据可以从环境变量,json,yaml,toml文件中获取。

比如根据 nginx.conf.in 模版文件 和 动态数据 data.json,动态生成 nginx.conf

frep nginx.conf.in --load data.json

具体帮助参考:

NAME:
   frep - Generate file using template

USAGE:
   frep [options] input-file[:output-file] ...

VERSION:
   1.2.0-50

AUTHORS:
   Guoqiang Chen 

OPTIONS:
   -e name=value, --env name=value   set variable name=value, can be passed multiple times
   --json jsonstring                 load variables from json object string
   --load file                       load variables from json/yaml/toml file
   --overwrite                       overwrite if destination file exists
   --dryrun                          just output result to console instead of file
   --delims value                    template tag delimiters (default: {{:}})
   --help                            print this usage
   --version                         print version information

EXAMPLES:
   frep nginx.conf.in -e webroot=/usr/share/nginx/html -e port=8080
   frep nginx.conf.in:/etc/nginx.conf -e webroot=/usr/share/nginx/html -e port=8080
   frep nginx.conf.in --json '{"webroot": "/usr/share/nginx/html", "port": 8080}'
   frep nginx.conf.in --load config.json --overwrite

本文地址:https://codercto.com/soft/d/12288.html

算法的陷阱

算法的陷阱

阿里尔•扎拉奇 (Ariel Ezrachi)、莫里斯•E. 斯图克 (Maurice E. Stucke) / 余潇 / 中信出版社 / 2018-5-1 / CNY 69.00

互联网的存在令追求物美价廉的消费者与来自世界各地的商品只有轻点几下鼠标的距离。这诚然是一个伟大的科技进步,但却也是一个发人深思的商业现象。本书中,作者扎拉奇与斯图克将引领我们对由应用程序支持的互联网商务做出更深入的检视。虽然从表面上看来,消费者确是互联网商务兴盛繁荣过程中的获益者,可精妙的算法与数据运算同样也改变了市场竞争的本质,并且这种改变也非总能带来积极意义。 首当其冲地,危机潜伏于计算......一起来看看 《算法的陷阱》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具