Skip to content

Commit

Permalink
print not supported message for platform that are no plans to support
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed May 19, 2024
1 parent 7d6a263 commit df8cad8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ async fn main() -> Result<()> {
};
let guard = log_init(log_level);

#[cfg(not(target_os = "linux"))]
error!("he he, not yet ready for this platform, but soon my friend, soon :)");
#[cfg(not(target_os = "linux"))]
return Ok(());
#[cfg(any(target_os = "macos", target_os = "windows"))]
{
error!("he he, not yet ready for this platform, but soon my friend, soon :)");
info!("Bye!");
return Ok(());
}
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
{
error!("sorry but this platform is not supported!");
info!("Bye!");
return Ok(());
}

let mount_point = match matches.subcommand() {
Some(("mount", matches)) => {
Expand Down

0 comments on commit df8cad8

Please sign in to comment.