Add a command for showing config reference

This commit is contained in:
Roey Darwish Dror
2020-06-30 10:01:22 +03:00
parent e38252d95d
commit e542054229
2 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,11 @@ fn run() -> Result<()> {
return Ok(());
};
if opt.show_config_reference() {
print!("{}", crate::config::EXAMPLE_CONFIG);
return Ok(());
}
let config = Config::load(&base_dirs, opt)?;
terminal::set_title(config.set_title());
terminal::set_desktop_notifications(config.notify_each_step());