-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added xdebug + linux support - fixes #37
- Loading branch information
1 parent
12dde8c
commit 8eb0450
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ hyper = "0.12.35" | |
tempdir = "0.3.7" | ||
zip = "0.5.3" | ||
structopt = "0.3.5" | ||
os_info = "1.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/// | ||
/// Relevant OS information that commands | ||
/// may/may-not care about | ||
/// | ||
#[derive(Debug, PartialEq, Default, Clone)] | ||
pub struct OsInfo { | ||
pub os_type: OsType, | ||
} | ||
|
||
impl OsInfo { | ||
pub fn new() -> OsInfo { | ||
OsInfo { | ||
#[cfg(target_os = "macos")] | ||
os_type: OsType::Mac, | ||
|
||
#[cfg(target_os = "windows")] | ||
os_type: OsType::Windows, | ||
|
||
// this wont take effect if either of the above apply | ||
..Default::default() | ||
} | ||
} | ||
} | ||
|
||
/// | ||
/// Deliberately not an exhaustive list. | ||
/// If it's not window or mac, assume linux | ||
/// | ||
#[derive(Debug, PartialEq, Clone)] | ||
pub enum OsType { | ||
Mac, | ||
Windows, | ||
Linux, | ||
} | ||
|
||
impl Default for OsType { | ||
fn default() -> Self { | ||
OsType::Linux | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters