#config-file #key-value #yaml #yaml-parser #extract #properties #secret

app config-parse

A tool to check and extract certain key-values from your config files

5 stable releases

2.2.2 May 6, 2023
2.2.1 Apr 29, 2023
2.2.0 Apr 28, 2023
2.1.0 Apr 10, 2023
2.0.0 Mar 29, 2023

#631 in Configuration

MIT/Apache

20KB
524 lines

Config Parse

A rust app to extract public information from your config files while keeping secret information (passwords, keys, etc) hidden. It also checks multiple config files to assert that they include the same keys.

Currently only for .yaml and .properties files.

Usage

With a configuration file

The app is configured through the config_parser.toml file.

  • files: Paths of the files that will be parsed.
  • keys: Array of String types of the keys that will be extracted. Separated by dot notation (e.g. auth.client.key)

With CLI Arguments

Alternatively, you can supply the files and keys with CLI arguments:

config-parse --cli --files test/1.yaml --files test/2.yaml --keys one.big.cascade --keys url

What's next

  • Support other file types (.toml, ...)

Dependencies

~5–17MB
~159K SLoC