Compare commits

..
Author SHA1 Message Date
David Peter b4cfbfaf7b Bump version 2023-03-21 21:03:34 +01: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
Ryan Caezar Itang ba4c3d6bdb Move Winget Releaser inside CICD workflow 2023-03-15 20:56:07 +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 8f20aed2da Fix pipeline! 2023-03-15 10:13:58 +01:00
David Peter ca9e29ad8c Fix pipeline! 2023-03-15 10:13:58 +01:00
David Peter 6a4239d236 MSRV in CI/CD 2023-03-15 10:13:58 +01:00
David Peter c44aa1d006 Fix clippy suggestions 2023-03-15 10:13:58 +01:00
David Peter b38bfc894c Update dependencies 2023-03-15 10:13:58 +01:00
David Peter 13357a9b67 Update CI/CD 2023-03-15 10:13:58 +01:00
David Peter 94322c50e5 Bump version 2023-03-15 10:13:58 +01:00
David Peter 5f5adda8b4 Prevent creation of file named '-' 2023-03-15 10:13:58 +01:00
David Peter 5924ac3b63 Update CHANGELOG 2023-03-15 10:13:58 +01:00
9 changed files with 36 additions and 27 deletions

No files matched your search

+12
View File
@@ -330,3 +330,15 @@ jobs:
${{ steps.debian-package.outputs.DPKG_PATH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
winget:
name: Publish to Winget
runs-on: windows-latest # Action can only run on Windows
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: sharkdp.hyperfine
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}
-14
View File
@@ -1,14 +0,0 @@
name: Publish to Winget
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest # Action can only run on Windows
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: sharkdp.hyperfine
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}
+7
View File
@@ -15,6 +15,13 @@
## Other
# v1.16.1
## Bugfixes
- Fix line-wrapping of `--help` text (@sharkdp)
- Fix `--input=null` (@sharkdp)
# v1.16.0
+2 -2
View File
@@ -13,5 +13,5 @@ authors:
repository-code: 'https://github.com/sharkdp/hyperfine'
abstract: A command-line benchmarking tool.
license: MIT
version: 1.16.0
date-released: '2023-03-15'
version: 1.16.1
date-released: '2023-03-21'
Generated
+1 -1
View File
@@ -405,7 +405,7 @@ checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
[[package]]
name = "hyperfine"
version = "1.16.0"
version = "1.16.1"
dependencies = [
"anyhow",
"approx",
+1 -1
View File
@@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
name = "hyperfine"
readme = "README.md"
repository = "https://github.com/sharkdp/hyperfine"
version = "1.16.0"
version = "1.16.1"
edition = "2018"
build = "build.rs"
rust-version = "1.64.0"
+2 -2
View File
@@ -170,8 +170,8 @@ like `--warmup`, `--prepare <cmd>`, `--setup <cmd>` or `--cleanup <cmd>`:
Download the appropriate `.deb` package from the [Release page](https://github.com/sharkdp/hyperfine/releases)
and install it via `dpkg`:
```
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.0/hyperfine_1.16.0_amd64.deb
sudo dpkg -i hyperfine_1.16.0_amd64.deb
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb
sudo dpkg -i hyperfine_1.16.1_amd64.deb
```
### On Fedora
+1 -1
View File
@@ -21,7 +21,7 @@ fn build_command() -> Command {
.hide_possible_values(true)
.about("A command-line benchmarking tool.")
.help_expected(true)
.term_width(100)
.max_term_width(80)
.arg(
Arg::new("command")
.help("The command to benchmark. This can be the name of an executable, a command \
+10 -6
View File
@@ -379,13 +379,17 @@ impl Options {
}
options.command_input_policy = if let Some(path_str) = matches.get_one::<String>("input") {
let path = PathBuf::from(path_str);
if !path.exists() {
return Err(OptionsError::StdinDataFileDoesNotExist(
path_str.to_string(),
));
if path_str == "null" {
CommandInputPolicy::Null
} else {
let path = PathBuf::from(path_str);
if !path.exists() {
return Err(OptionsError::StdinDataFileDoesNotExist(
path_str.to_string(),
));
}
CommandInputPolicy::File(path)
}
CommandInputPolicy::File(path)
} else {
CommandInputPolicy::Null
};