项目作者: OpusCapita

项目描述 :
Command line utility to work with '*.properties' file
高级语言: Go
项目地址: git://github.com/OpusCapita/properties.git
创建时间: 2019-07-18T07:20:07Z
项目社区:https://github.com/OpusCapita/properties

开源协议:MIT License

下载


Properties

Command-line utility to work with ‘*.properties’ file

Download

Select released version that you are interested in on https://github.com/OpusCapita/properties/releases page and download archive with binary file for your platform.

Use binary without installation

Run the latest properties binary

  1. curl -sL https://git.io/oc-properties | bash -s -- get --file ./test.properties --key a.b.c

Or, if you want to use an specific version

  1. curl -sL https://git.io/oc-properties | PROPERTIES_VERSION=v1.0.0-rc5 bash -s -- get --file ./test.properties --key a.b.c

In both cases you should get property value printed into stdout by key ‘a.b.c’ from file ‘./test.properties’

Install binary

In fact the same as running script but without passing any arguments to bash

  1. curl -sL https://git.io/oc-properties | PROPERTIES_TARGET_DIR=/one/two/tree bash

You’ll get ‘properties’ binary file installed into /one/two/tree folder (corresponding message will be printed to stdout)
P.S. If you don’t define PROPERTIES_TARGET_DIR then installation will be performed into random temporary folder (which is not what you want)

Development

How to release

  • commit changes locally
  • look at git tag for the latest one; use incremented value in the next step
  • git tag v1.0.0-rc9 (whatever the next tag after the existing latest one)
  • git push && git push --tags