Added --stdin-data argument

This argument accepts a path to a file. The data contained in the file will be passed to the command via stdin.

Closes sharkdp/hyperfine#541
This commit is contained in:
Steve Nease authored and David Peter committed 2023-03-15 09:33:49 +01:00
1 parent 531fee3188
commit e38acdb683
6 files changed
+91 -3

No files matched your search

+2
View File
@@ -53,4 +53,6 @@ pub enum OptionsError<'a> {
ShellParseError(shell_words::ParseError),
#[error("Unknown output policy '{0}'. Use './{0}' to output to a file named '{0}'.")]
UnknownOutputPolicy(String),
#[error("File containing stdin data '{0}' does not exist")]
StdinDataFileDoesNotExist(String),
}