From 8d4a1fa45ef647a5fcb0e60d6d0dde13adafe48a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 18 Oct 2015 20:52:35 +0200 Subject: [PATCH] cli: export data and add helper functions for accessing data --- src/cli.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index fa48cad9..b493943a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -8,7 +8,7 @@ struct ConfigBase { pub struct ModuleConfig { base : ConfigBase, - load : bool, + pub load : bool, } impl ModuleConfig { @@ -25,7 +25,7 @@ impl ModuleConfig { pub struct Config { base : ConfigBase, - module_configs : Vec, + pub module_configs : Vec, } impl Config { @@ -38,6 +38,14 @@ impl Config { module_configs: vec![], } } + + pub fn is_verbose(&self) -> bool { + self.base.verbosity + } + + pub fn is_debugging(&self) -> bool { + self.base.debugging + } } pub fn configure(config : &mut Config) {