Crate cfgrs

Crate cfgrs 

Source
Expand description

This is the library documentation for code which is used in the binary cfgrs, which is likely what you’re looking for. This can be found at https://github.com/tveness/cfgrs/releases or alternatively can be installed with cargo install cfgrs.

cfgrs is a small CLI helper tool for converting between different configuration formats. The current formats supported are:

  • hcl
  • json
  • toml
  • yaml

These formats are not completely interchangeable, and as such if they cannot be converted an error is currently raised.

cfgrs may be used in the following way to convert between formats:

cat Cargo.toml|cfgrs -o yaml

which will then display a Cargo.toml file in its yaml representation (if this is possible)

Structs§

ParseConfigError
Error type for parsing input

Enums§

ConfigType
Lists different configuration file formats supported
ParsedInput
Wrapper for the different crates’ parsed input e.g. serde_json::Value gets wrapped by Json