Skip to content

Commit

Permalink
fix: controller only unix
Browse files Browse the repository at this point in the history
  • Loading branch information
da13da committed Nov 15, 2024
1 parent 5f61564 commit affa1dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
extern crate env_logger;
use chrono;
use clap::{Parser, Subcommand};
use shadow_rs::shadow;

Expand Down Expand Up @@ -50,7 +49,14 @@ fn main() {

match &cli.command {
Some(Commands::Controller) => {
let _ = controller::run();
#[cfg(unix)]
{
let _ = controller::run();
}
#[cfg(not(unix))]
{
log::error!("Controller is not supported on this platform.");
}
}
None => {
if cli.agent_options.config || cli.agent_options.command.is_some() {
Expand Down

0 comments on commit affa1dd

Please sign in to comment.