mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 08:40:18 +00:00
Move DEFAULT_SHELL to options
This commit is contained in:
1 parent
465160b9aa
commit
cbfd9f5b41
2 files changed
+7
-10
No files matched your search
@@ -1,7 +1,10 @@
|
||||
use super::{
|
||||
types::DEFAULT_SHELL,
|
||||
units::{Second, Unit},
|
||||
};
|
||||
use super::units::{Second, Unit};
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub const DEFAULT_SHELL: &str = "sh";
|
||||
|
||||
#[cfg(windows)]
|
||||
pub const DEFAULT_SHELL: &str = "cmd.exe";
|
||||
|
||||
/// Action to take when an executed command fails.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
|
||||
@@ -8,12 +8,6 @@ use rust_decimal::Decimal;
|
||||
|
||||
use crate::hyperfine::units::Second;
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub const DEFAULT_SHELL: &str = "sh";
|
||||
|
||||
#[cfg(windows)]
|
||||
pub const DEFAULT_SHELL: &str = "cmd.exe";
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Copy, PartialEq, Eq)]
|
||||
#[serde(untagged)]
|
||||
pub enum NumericType {
|
||||
|
||||
Reference in new issue
Block a user