Commit Graph
427 Commits
Author SHA1 Message Date
David Peter 5f5adda8b4 Prevent creation of file named '-' 2023-03-15 10:13:58 +01:00
Humble Penguin e50050f53d removed unused imports 2023-03-15 09:34:29 +01:00
Humble Penguin 9d0f67838f used cfg!(windows) instead of env::consts::OS 2023-03-15 09:34:29 +01:00
Humble Penguin acf156e5d4 ran cargo fmt 2023-03-15 09:34:29 +01:00
Humble Penguin bbe706bcc1 PR for issue #615 2023-03-15 09:34:29 +01:00
David Peter 42e85f240c Fix merge conflicts 2023-03-15 09:33:49 +01:00
David Peter e4790ab441 Change error message 2023-03-15 09:33:49 +01:00
David Peter e88fa27c07 Change order of input/outut 2023-03-15 09:33:49 +01:00
David Peter 5db7516dd9 Formatting of help text 2023-03-15 09:33:49 +01:00
Steve Nease d32b90ee5c Add the rest of the suggestions from code review 2023-03-15 09:33:49 +01:00
sneaseandDavid Peter bbb59fd7fa Apply suggestions from code review
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2023-03-15 09:33:49 +01:00
Steve Nease 0e3bad1391 ran cargo fmt 2023-03-15 09:33:49 +01:00
Steve Nease e38acdb683 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
2023-03-15 09:33:49 +01:00
David Peter 5b5daa0493 Improve hints for outlier warnings
Improve hints for outlier warnings if `--warmup` or `--prepare` are in
use already.

Closes #570
2022-11-20 21:19:27 +01:00
Benjamin Rombaut 781a6815c1 remove unneeded var 2022-11-19 15:13:30 +01:00
Benjamin Rombaut a2e85a25b6 remove unneeded var 2022-11-19 15:13:30 +01:00
Benjamin Rombaut fcaa6d32dc chore: run fmt 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 17aca87df9 use wrap_help 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 8d38ef3eaa update to clap 4 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 27ec9e22d8 use set and settrue 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 5fcb7166a9 add clap deprecation notices 2022-11-19 15:13:30 +01:00
FilipAndersson f00acf962e Fixes #568 2022-10-29 14:58:57 +02:00
наб af2f0ace22 Default to $TERM unset = colour on Win32
This otherwise respects all other configuration
(NO_COLOR, TERM=dumb, &c.), but it's very common for the environment to
be lacking TERM, which in that case usually means a pro-verbial
TERM=cmd.exe, which is colourful

Fixes: 049d1138c9 ("Don't output colours
 by default if TERM=dumb or NO_COLOR=1")
2022-10-29 14:48:25 +02:00
Sendhil Panchadsaram 8c2ef10633 Fix typo in unit test.
src/command.rs: test_parameterr_scan_commands_names -> test_parameter_scan_commands_names
2022-10-06 16:09:11 +02:00
David Peter 71c139c81e Updates for indicatif 0.17 2022-09-23 08:34:10 +02:00
David Peter c7e56942f7 Fix clippy suggestions 2022-09-07 09:20:50 +02:00
David Peter dffbdc34d4 Add new (hidden) --min-benchmarking-time option 2022-09-07 09:13:53 +02:00
David Peter c4f7bbbd2b Merge branch '1' 2022-09-07 08:47:26 +02:00
David Peter 9fefe9af31 Rewrite boolean condition 2022-09-07 08:44:57 +02:00
Clemens Wasser 7db6178dfa Cleanup Windows CPUTimer 2022-09-07 08:32:30 +02:00
наб 049d1138c9 Don't output colours by default if TERM=dumb or NO_COLOR=1
This matches ZFS, and is mostly état d'art

Closes #542
2022-09-02 13:38:37 +02:00
Clemens Wasser ac8c114c80 Fix user and kernel times on Windows 2022-09-02 08:48:50 +02:00
cactter 2e8ce30235 Shrink unsafe block 2022-08-02 09:28:08 +02:00
David Peter de0ace4c7d Add full stop after help messages 2022-07-01 13:57:42 +02:00
Engineer-of-Efficiency d08c393c40 Add spaces and shorten prompt 2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency 4357559a56 Remove single space character 2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency 2045e97b1d Correct default of the --time-unit option in help text 2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency a217f3f32a Remove possible ambiguity
Remove possible ambiguity concerning the --time-unit option.
2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency edb29f4e4e Make --time-unit help text more generic. 2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency 73f1e14390 Add hints to all export options 2022-07-01 13:57:01 +02:00
Engineer-of-Efficiency 30d2253351 Add hint to --time-unit 2022-07-01 13:57:01 +02:00
Philipp Paulweber 5e655032bc Refactor AsciiDocExporter emitting using the MarkupExporter trait 2022-05-26 22:38:25 +02:00
David Peter ec4321392f Fix clippy warnings 2022-05-17 22:57:10 +02:00
Tavian Barnes 3df63ba2bb Address review comments 2022-05-17 22:30:45 +02:00
Tavian Barnes efdf735723 Forbid --output=file without a path separator 2022-05-17 22:30:45 +02:00
Tavian Barnes ecee9df575 Add --output=inherit as an alias for --show-output 2022-05-17 22:30:45 +02:00
Tavian Barnes dfd1046d63 Clarify --output's help text 2022-05-17 22:30:45 +02:00
Tavian Barnes 277807cb5a Implement --output={null,pipe,<FILE>}
Fixes #377.
2022-05-17 22:30:45 +02:00
David Peter eb0ccc85f1 Adapt to new markup exporter changes 2022-05-15 21:57:35 +02:00
Philipp Paulweber 2443383fc8 Export of Emacs org-mode table support
* added new command-line option '--export-orgmode <FILE>' to create
  Emacs org-mode table output by reusing markup result formatting
* based on the new MarkdownFormatter trait, see PR #490
2022-05-15 21:57:35 +02:00