Skip to content
/ proper Public

A simple application to substitute properties with values from environment variables or key/value files.

License

Notifications You must be signed in to change notification settings

jburell/proper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proper Build Status

Current version: v0.7.1

A simple application to substitute properties with values from environment variables or key/value files.

Basic usage

Usage:
 proper [OPTIONS] <property-file> <result-file>

About:
This tool replaces occurances of ${<VAR>} in the property-file and replaces them
either with environment variables or from keyfile (if given). 
Format in keyfile is: VAR=VALUE.

Options:
    -k --keys FILE(s)   keyfile(s) with variable substitutions, can occur
                        multiple times
    -p --props-first    properties takes precedence over environment variables
                        (default: off)
    -s --shadow-keys    When using multiple keyfiles, key-values will
                        overshadow each other. Default is that multiple values
                        for one key throws an error.
    -? --help           print this help menu
    -V --version        prints current version number

Build instructions

$ git clone https://github.com/jburell/proper.git
$ cd proper
$ cargo build --release

Installation instructions (Linux)

$ sudo cp target/release/proper /usr/local/bin/
(Or...)
$ sudo ln -s target/release/proper /usr/local/bin/proper

About

A simple application to substitute properties with values from environment variables or key/value files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published