Application microframework with support for command-line option parsing,
configuration, error handling, logging, and terminal interactions.
This crate contains the framework's core functionality.
//! Configuration loader
usesuper::Config;usecrate::FrameworkError;usestd::path::PathBuf;/// Command type with which a configuration file is associated
pubtraitConfigurable<Cfg: Config> {/// Path to the command's configuration file. Returns an error by default.
fnconfig_path(&self)->Option<PathBuf>{None}/// Process the configuration after it has been loaded, potentially
/// modifying it or returning an error if options are incompatible
fnprocess_config(&self, config: Cfg)->Result<Cfg, FrameworkError>{Ok(config)}}