-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix badges and import pretty to readme (#5)
* feat: fix badges and import pretty to readme * fix: rm extra ci jobs
- Loading branch information
1 parent
bc20e00
commit 566745d
Showing
8 changed files
with
123 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ jobs: | |
steps: | ||
- uses: asdf-vm/actions/plugin-test@v2 | ||
with: | ||
command: crictl --version | ||
command: crictl --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
list_all_versions() { | ||
local release_url="https://github.com/kubernetes-sigs/cri-tools/releases" | ||
curl -Ls $release_url | grep -oE 'href="/kubernetes-sigs/cri-tools/releases/tag/v[0-9]+\.[0-9]+\.[0-9]+"' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | sort -rV | ||
local release_url="https://github.com/kubernetes-sigs/cri-tools/releases" | ||
curl -Ls $release_url | grep -oE 'href="/kubernetes-sigs/cri-tools/releases/tag/v[0-9]+\.[0-9]+\.[0-9]+"' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | sort -rV | ||
} | ||
|
||
list_installed_versions() { | ||
ls -1 ~/.asdf/installs/crictl | ||
ls -1 ~/.asdf/installs/crictl | ||
} | ||
|
||
install_version() { | ||
local version=$1 | ||
asdf plugin-add crictl https://github.com/kubernetes-sigs/cri-tools.git | ||
asdf install crictl $version | ||
local version=$1 | ||
asdf plugin-add crictl https://github.com/kubernetes-sigs/cri-tools.git | ||
asdf install crictl $version | ||
} | ||
|
||
uninstall_version() { | ||
local version=$1 | ||
asdf uninstall crictl $version | ||
local version=$1 | ||
asdf uninstall crictl $version | ||
} | ||
|
||
set_global_version() { | ||
local version=$1 | ||
asdf global crictl $version | ||
local version=$1 | ||
asdf global crictl $version | ||
} | ||
|
||
set_local_version() { | ||
local version=$1 | ||
asdf local crictl $version | ||
local version=$1 | ||
asdf local crictl $version | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
shfmt --language-dialect bash --write \ | ||
./**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
shellcheck --shell=bash --external-sources \ | ||
bin/* --source-path=template/lib/ \ | ||
lib/* \ | ||
scripts/* | ||
|
||
shfmt --language-dialect bash --diff \ | ||
./**/* |