properties

command module
v1.0.0-rc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 4 Imported by: 0

README

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

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

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

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

Documentation

Overview

Command-line utility to work with '\*.properties' file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL