mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Make UI default, and remove CLI version (#83)
This commit is contained in:
@@ -54,20 +54,6 @@ impl Settings {
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
pub fn write_config_if_missing() {
|
||||
let config_path = std::path::Path::new("config.toml");
|
||||
if !config_path.exists() {
|
||||
let worked = std::fs::write(config_path, include_str!("defaultconfig.toml"));
|
||||
match worked {
|
||||
Ok(_) => println!("Create configuration file at {:?}", &config_path),
|
||||
Err(err) => println!(
|
||||
"Could not create configuration file at {:?}, reason: {:?}",
|
||||
&config_path, err
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn sanitize_auth_key(result: &mut Result<Settings, ConfigError>) {
|
||||
|
||||
Reference in New Issue
Block a user