Skip to main content

Crate ortho_config_macros

Crate ortho_config_macros 

Source
Expand description

Procedural macros for ortho_config.

The current implementation of the OrthoConfig derive provides a basic load method that layers configuration from a config.toml file, environment variables, and now command-line arguments via clap. CLI flag names are automatically generated from snake_case field names by replacing underscores with hyphens. Generated long flags therefore never include underscores; supply cli_long to specify them.

Derive Macrosยง

OrthoConfig
Derive macro for the OrthoConfig trait.
OrthoConfigSubcommandDocs
Derive macro for the ortho_config::docs::OrthoConfigSubcommandDocs trait.
SelectedSubcommandMerge
Derive macro for the ortho_config::SelectedSubcommandMerge trait.