The library provides convenient way to represent/parse configuration from different sources. The main goals is to be very easy to use and to be extendable
BSD-2-CLAUSE License
Bot releases are visible (Hide)
Published by abakay over 1 year ago
Changes:
Rust
version to 1.65.0
in Cargo.toml
file.Published by abakay over 1 year ago
Published by abakay almost 2 years ago
Changes:
Rust 1.66.0
.0.12.x
.Published by abakay about 2 years ago
Changes:
clap
command-line parameters.use_defaults
to cmd
parser. Use defaults from clap
arguments. Default is false
.true
then all defined command-line parameters will have values which will override values with same key(s) from parsers which was added to ConfigBuilder
after this parser.Published by abakay about 2 years ago
Changes:
3.2.x
.0.9.x
.0.11.x
.use_arg_types
to cmd
parser. If that setting is set to true
then use ArgAction
or ValueParser
type to calculate type of an argument. Default is false
.Published by abakay about 2 years ago
Fixed issue for use_value_delimiter
with single value in cmd
parser.
Published by abakay about 2 years ago
Fixed implicit conversion of crate::Error
to anyhow::Error
.
Published by abakay about 2 years ago
Enhancements:
single_flags_as_bool
to cmd
parser. If that setting is set to true
and a parameter not allowed to have multiple occurrences by clap API then parameter's value will have boolean true
as a value. By default all command-line parameters without values will have they values set to number of they occurrences.ignore_missing_file
to file based parsers. If that setting is set to true
then a file does not exists, do not try to load it. The default Value
will be returned. Default is false
.Published by abakay over 2 years ago
Added JSON5
parser via json5-parser
feature.
Published by abakay over 2 years ago
NOTE: The clap was upgraded to next major version 3.x
. Some old API
was deprecated (clap::load_yaml!
, etc.). These changes also forced an increase in the major version for this crate.
3.x
.cmd::ParserBuilder
:
default()
, replaced by new(...)
matches(...)
arg_names(...)
try_arg_names_from_yaml(...)
Published by abakay almost 3 years ago
Rust 1.57.0
.Published by abakay almost 3 years ago
The irx-config
library provides convenient way to represent/parse configuration from different sources. The main
goals is to be very easy to use and to be extendable.
JSON
, YAML
and TOML