office-automation 0.2.3

Windows CLI tool that automates PowerPoint and Excel via COM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::config::Config;

/// Print all config keys and their default values.
pub fn run_config() {
    let config = Config::default();
    println!("{:<30} {}", "KEY", "DEFAULT");
    println!("{:<30} {}", "---", "-------");
    for (key, value) in config.all_keys() {
        let display = if value.is_empty() {
            "(empty)".to_string()
        } else {
            value
        };
        println!("{:<30} {}", key, display);
    }
}