Switch to TOML for configuration
This commit is contained in:
@@ -38,11 +38,12 @@ mod macros;
|
||||
|
||||
mod argparse;
|
||||
mod invocation;
|
||||
mod report;
|
||||
mod settings;
|
||||
mod table;
|
||||
mod usage;
|
||||
|
||||
use settings::Settings;
|
||||
|
||||
/// The main entry point for the command-line interface. This builds an Invocation
|
||||
/// from the particulars of the operating-system interface, and then executes it.
|
||||
pub fn main() -> anyhow::Result<()> {
|
||||
@@ -59,7 +60,7 @@ pub fn main() -> anyhow::Result<()> {
|
||||
let command = argparse::Command::from_argv(&argv[..])?;
|
||||
|
||||
// load the application settings
|
||||
let settings = settings::read_settings()?;
|
||||
let settings = Settings::read()?;
|
||||
|
||||
invocation::invoke(command, settings)?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user