Skip to content
Myr

Move DEFAULT_SHELL to options

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 465160b · Browse files · 2 files+7 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−10 removed

  • other:+7 added−10 removed

2 files+7 added−10 removed

modified:src/hyperfine/options.rs+7 added-4 removed
1use super::{2 types::DEFAULT_SHELL,3 units::{Second, Unit},4};1use super::units::{Second, Unit};23#[cfg(not(windows))]4pub const DEFAULT_SHELL: &str = "sh";56#[cfg(windows)]7pub const DEFAULT_SHELL: &str = "cmd.exe";89/// Action to take when an executed command fails.10#[derive(Debug, Clone, Copy, PartialEq)]11pub enum CmdFailureAction {12 /// Exit with an error message
95 unmodified lines
modified:src/hyperfine/types.rs-6 removed
6 unmodified lines
7use rust_decimal::Decimal;89use crate::hyperfine::units::Second;1011#[cfg(not(windows))]12pub const DEFAULT_SHELL: &str = "sh";1314#[cfg(windows)]15pub const DEFAULT_SHELL: &str = "cmd.exe";1611#[derive(Debug, Clone, Serialize, Copy, PartialEq, Eq)]12#[serde(untagged)]13pub enum NumericType {14 Int(i32),
125 unmodified lines