Added some fixes for Windows (now the setup command works)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user