pub trait Configurable<Cfg: Config> {
    fn config_path(&self) -> Option<PathBuf> { ... }
    fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError> { ... }
}
Expand description

Command type with which a configuration file is associated

Provided Methods§

Path to the command’s configuration file. Returns an error by default.

Process the configuration after it has been loaded, potentially modifying it or returning an error if options are incompatible

Implementors§