diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-08-12 15:21:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 15:21:17 -0400 |
commit | 8eed24cd3d9cea5179c65e43d23fbf6cf4d873ca (patch) | |
tree | 3047d60a9f8e972a601de011460dee151ad4c558 /cli/args/flags.rs | |
parent | ee2f4e745c33797ac9fd20571e77cef73ea585bf (diff) |
fix(coverage): ensure coverage is only collected in certain situations (#15467)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 9feef54b0..f47d5b121 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -162,6 +162,12 @@ pub struct RunFlags { pub script: String, } +impl RunFlags { + pub fn is_stdin(&self) -> bool { + self.script == "-" + } +} + #[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] pub struct TaskFlags { pub cwd: Option<String>, |