diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f6383d..05a2129 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,6 +120,10 @@ jobs: if [[ ! -x $SYNC_DIR/rg ]]; then echo "error on: rg"; false; fi if [[ ! -x $SYNC_DIR/tool ]]; then echo "error on: tool"; false; fi if [[ ! -x $SYNC_DIR/gh ]]; then echo "error on: gh"; false; fi + if [[ ! -x $SYNC_DIR/hyperfine ]]; then echo "error on: hyperfine"; false; fi + if [[ ! -x $SYNC_DIR/just ]]; then echo "error on: just"; false; fi + if [[ ! -x $SYNC_DIR/k9s ]]; then echo "error on: k9s"; false; fi + if [[ ! -x $SYNC_DIR/procs ]]; then echo "error on: procs"; false; fi # disabled because of: https://github.com/alexcrichton/tar-rs/issues/295 # if [[ ! -x $SYNC_DIR/tokei ]]; then echo "error on: tokei"; false; fi @@ -164,6 +168,19 @@ jobs: if (!(Test-Path $env:SYNC_DIR\gh.exe)) { throw 'error on gh.exe' } + if (!(Test-Path $env:SYNC_DIR\hyperfine.exe)) { + throw 'error on hyperfine.exe' + } + if (!(Test-Path $env:SYNC_DIR\just.exe)) { + throw 'error on just.exe' + } + if (!(Test-Path $env:SYNC_DIR\k9s.exe)) { + throw 'error on k9s.exe' + } + if (!(Test-Path $env:SYNC_DIR\procs.exe)) { + throw 'error on procs.exe' + } + rustfmt: name: rustfmt diff --git a/CHANGELOG.md b/CHANGELOG.md index 35da73c..c829db3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,10 @@ available [on GitHub][2]. * [#133](https://github.com/chshersh/tool-sync/issues/133) Added shell completion (by [@MitchellBerend][MitchellBerend]) +* [#147](https://github.com/chshersh/tool-sync/issues/147) + Supports casey/just, dalance/procs, derailed/k9s, and + sharkdp/hyperfine natively. + (by [@hdhoang][hdhoang]) ### Fixed diff --git a/src/sync/db.rs b/src/sync/db.rs index aa38d26..fdbb109 100644 --- a/src/sync/db.rs +++ b/src/sync/db.rs @@ -62,6 +62,54 @@ pub fn build_db() -> BTreeMap { tag: ToolInfoTag::Latest, }, ); + tools.insert( + "hyperfine", + StaticToolInfo { + owner: "sharkdp", + repo: "hyperfine", + exe_name: "hyperfine", + linux: "x86_64-unknown-linux-musl", + macos: "x86_64-apple-darwin", + windows: "x86_64-pc-windows-msvc", + tag: ToolInfoTag::Latest, + }, + ); + tools.insert( + "just", + StaticToolInfo { + owner: "casey", + repo: "just", + exe_name: "just", + linux: "x86_64-unknown-linux-musl", + macos: "x86_64-apple-darwin", + windows: "x86_64-pc-windows-msvc", + tag: ToolInfoTag::Latest, + }, + ); + tools.insert( + "k9s", + StaticToolInfo { + owner: "derailed", + repo: "k9s", + exe_name: "k9s", + linux: "Linux_x86_64", + macos: "Darwin_x86_64", + windows: "Windows_x86_64", + tag: ToolInfoTag::Latest, + }, + ); + tools.insert( + "procs", + StaticToolInfo { + owner: "dalance", + repo: "procs", + exe_name: "procs", + linux: "x86_64-linux", + macos: "x86_64-mac", + windows: "x86_64-windows.zip", + tag: ToolInfoTag::Latest, + }, + ); tools.insert( "ripgrep", StaticToolInfo { diff --git a/tests/default-config.toml b/tests/default-config.toml index c047226..03c8188 100644 --- a/tests/default-config.toml +++ b/tests/default-config.toml @@ -14,6 +14,10 @@ # [exa] # https://github.com/ogham/exa # [fd] # https://github.com/sharkdp/fd # [github] # https://github.com/cli/cli +# [hyperfine] # https://github.com/sharkdp/hyperfine +# [just] # https://github.com/casey/just +# [k9s] # https://github.com/derailed/k9s +# [procs] # https://github.com/dalance/procs # [ripgrep] # https://github.com/BurntSushi/ripgrep # [tool-sync] # https://github.com/chshersh/tool-sync # diff --git a/tests/sync-full.toml b/tests/sync-full.toml index a8dcb58..6832fb9 100644 --- a/tests/sync-full.toml +++ b/tests/sync-full.toml @@ -9,6 +9,10 @@ store_directory = "sync-full" [ripgrep] [tool-sync] [github] +[hyperfine] +[just] +[k9s] +[procs] #disabled because of: https://github.com/alexcrichton/tar-rs/issues/295 # [tokei]