根据模版文件生成配置文件 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://www.codercto.com/soft/d/12288.html

爆款:如何打造超级IP

爆款:如何打造超级IP

【美】安妮塔•埃尔伯斯 / 杨雨 / 中信出版社 / 2016-1-10 / 49

哈佛商学院IP运营与产品管理方法论第一书,翻转长尾理论的重要著作! 电影大片、当红炸子鸡、百万畅销书背后的运营逻辑是什么? 《五十度灰》、Lady Gaga、维多利亚的秘密有何共同秘密? 漫威如何将蜘蛛侠、X战警、绿巨人打造成金矿? 皇马如何打造体育IP,一跃成为全球收 入最高的足球俱乐部? 爆款策略如何运用于电影、电视、音乐、出版、体育与商业各领域? ----......一起来看看 《爆款:如何打造超级IP》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码