1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 frep 1.2.0 发布 - 生成模版配置文件 下载

Discussion in '软件资讯' started by 漂亮的石头, 2017-05-16.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,979
    Likes Received:
    47
    frep 是一个根据模版文件生成相应的配置文件功能,相关数据可以从环境变量,json,yaml, toml文件中获取。

    本次 1.2.0 版本主要新增 toml 数据文件支持,以及全新的命令行解析器。

    NAME:
    frep - Generate file using template

    USAGE:
    frep [options] input-file[:eek:utput-file] ...

    VERSION:
    1.2.0-50

    AUTHORS:
    Guoqiang Chen <subchen@gmail.com>

    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
    frep 1.2.0 发布 - 生成模版配置文件下载地址
     
Loading...