Switch to TOML for configuration

This commit is contained in:
Dustin J. Mitchell
2021-05-02 16:59:51 -04:00
parent b4a8b150a8
commit 94d1217d81
15 changed files with 901 additions and 776 deletions

View File

@@ -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(())