Commit Graph
397 Commits
Author SHA1 Message Date
overclockworked64 798ea2dca1 fix: add a space in the progress bar template 2023-10-23 19:31:30 +02:00
Lena 69ee1738d4 Remove dependency on atty and use std::io::IsTerminal instead 2023-10-18 20:54:12 +02:00
David Peter 4564977b7a Add support for microseconds, closes #684 2023-10-05 09:39:00 +02:00
Pedro Witzel ae9b0bbdfd cfg: adding more pre-processing for windows-only parser 2023-10-05 09:25:07 +02:00
Pedro Witzel c2f99e5f94 fmt: apply cargo fmt suggestions 2023-10-05 09:25:07 +02:00
Pedro Witzel bece2eacf0 bug: quoting failure on windows-platform (#296) 2023-10-05 09:25:07 +02:00
David Peter 3d4710f6e0 Clippy suggestions 2023-06-03 23:24:11 +02:00
David Peter ac617c8714 Add new --sort option
This adds a new `--sort` option to choose the way in which the results
in the speed comparison and the markup exports are ordered.

closes #614
closes #601
2023-06-03 21:34:36 +02:00
Ville Skyttä 178bdaa205 Spelling and grammar fixes 2023-05-18 16:31:44 +02:00
David Peter a8752769ab Show unused parameters in command names
closes #600
2023-04-20 21:39:23 +02:00
David Peter 9859ecaafe Always compute relative speed comprison for export, closes #642 2023-04-20 13:22:00 +02:00
David Peter 926b8d07c8 Improve error message, mention --shell=none 2023-04-20 13:22:00 +02:00
David Peter 2793d7b994 Do not export intermediate results to stdout, closes #640 2023-04-20 13:22:00 +02:00
Clemens Wasser d2fb7d4c4c Use windows-sys and fix feature flag 2023-04-20 12:51:59 +02:00
Clemens Wasser ccda6c4712 Fix winapi type definition change 2023-04-17 21:10:59 +02:00
David Peter 80ec1c5ddf Fix usage of --input=null 2023-03-21 21:03:34 +01:00
David Peter fbe9ca6669 Use max. term width, not term width 2023-03-21 21:03:34 +01:00
David Peter 1c7a8cc2f6 Fix clippy suggestions 2023-03-15 10:13:58 +01:00
David Peter 2dfc919227 Help text wrapping 2023-03-15 10:13:58 +01:00
David Peter c44aa1d006 Fix clippy suggestions 2023-03-15 10:13:58 +01:00
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