Skip to content

Commit

Permalink
Make utils::execute cross-platform
Browse files Browse the repository at this point in the history
Make utils::execute cross-platform so that the project can hopefully be
built on windows as well as unix based platforms in the future.

This relates to issue #218

[changelog]
changed: utils::execute to build on both unix & windows platforms

<!-- ps-id: 6dec3d61-898a-40d5-b0aa-b537d97c3a30 -->
  • Loading branch information
drewdeponte committed Sep 10, 2023
1 parent 39787e8 commit a6ef095
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ps/private/utils/execute.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use std::io;
use std::os::unix::prelude::ExitStatusExt;
#[cfg(target_family = "unix")]
use std::os::unix::process::ExitStatusExt;
#[cfg(target_family = "windows")]
use std::os::windows::process::ExitStatusExt;
use std::process::{Command, Output};
use std::result::Result;

Expand Down

0 comments on commit a6ef095

Please sign in to comment.