Added some fixes for Windows (now the setup command works)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-10-24 23:42:45 -04:00
parent 004c057a2c
commit 9929db6c5b
4 changed files with 48 additions and 14 deletions

View File

@@ -23,12 +23,6 @@ enum Commands {
}
fn main() {
// set the configuration file path depending on the OS
let mut config_path: &str = "/etc/zealot/config.toml";
if cfg!(windows) {
config_path = "C:\\Program Files\\Zealot\\config.toml";
}
// initialize the log4rs logger
log4rs::init_file("./log4rs.yaml", Default::default()).unwrap();
@@ -37,7 +31,7 @@ fn main() {
match &cli.command {
// sub-commands will be handled here
Some(Commands::Setup {}) => cmd::core::setup_command(config_path),
Some(Commands::Setup {}) => cmd::core::setup_command(),
// run the main program without any commands
None => {