config-parse

Crates.ioconfig-parse
lib.rsconfig-parse
version2.2.2
sourcesrc
created_at2023-03-29 19:16:01.55123
updated_at2023-05-06 11:37:32.587507
descriptionA tool to check and extract certain key-values from your config files
homepagehttps://github.com/marcel-baur/config-parse
repositoryhttps://github.com/marcel-baur/config-parse
max_upload_size
id824312
size60,441
Marcel Baur (marcel-baur)

documentation

README

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, ...)
Commit count: 93

cargo fmt