Skip to content

Commit

Permalink
chore: renamed rtx-helper-plugin to mise-helper-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyewch committed Jan 6, 2024
1 parent d827e0c commit 0bb2198
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
with:
command: rtx-helper version
command: mise-helper version
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div align="center">

# rtx-helper-plugin [![Build](https://github.com/ngyewch/rtx-helper-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/ngyewch/rtx-helper-plugin/actions/workflows/build.yml) [![Lint](https://github.com/ngyewch/rtx-helper-plugin/actions/workflows/lint.yml/badge.svg)](https://github.com/ngyewch/rtx-helper-plugin/actions/workflows/lint.yml)
# mise-helper-plugin [![Build](https://github.com/ngyewch/mise-helper-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/ngyewch/mise-helper-plugin/actions/workflows/build.yml) [![Lint](https://github.com/ngyewch/mise-helper-plugin/actions/workflows/lint.yml/badge.svg)](https://github.com/ngyewch/mise-helper-plugin/actions/workflows/lint.yml)


[rtx-helper](https://github.com/ngyewch/rtx-helper) plugin for the [asdf version manager](https://asdf-vm.com).
[mise-helper](https://github.com/ngyewch/mise-helper) plugin for the [asdf version manager](https://asdf-vm.com).

</div>

Expand All @@ -23,23 +23,23 @@
Plugin:

```shell
asdf plugin add rtx-helper https://github.com/ngyewch/rtx-helper-plugin.git
asdf plugin add mise-helper https://github.com/ngyewch/mise-helper-plugin.git
```

rtx-helper:
mise-helper:

```shell
# Show all installable versions
asdf list-all rtx-helper
asdf list-all mise-helper

# Install specific version
asdf install rtx-helper latest
asdf install mise-helper latest

# Set a version globally (on your ~/.tool-versions file)
asdf global rtx-helper latest
asdf global mise-helper latest

# Now rtx-helper commands are available
rtx-helper version
# Now mise-helper commands are available
mise-helper version
```

Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to
Expand All @@ -49,7 +49,7 @@ install & manage versions.

Contributions of any kind welcome! See the [contributing guide](contributing.md).

[Thanks goes to these contributors](https://github.com/ngyewch/rtx-helper-plugin/graphs/contributors)!
[Thanks goes to these contributors](https://github.com/ngyewch/mise-helper-plugin/graphs/contributors)!

# License

Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Testing Locally:
asdf plugin test <plugin-name> <plugin-url> [--asdf-tool-version <version>] [--asdf-plugin-gitref <git-ref>] [test-command*]

#
asdf plugin test rtx-helper https://github.com/ngyewch/rtx-helper-plugin.git "rtx-helper version"
asdf plugin test mise-helper https://github.com/ngyewch/mise-helper-plugin.git "mise-helper version"
```

Tests are automatically run in GitHub Actions on push and PR.
12 changes: 6 additions & 6 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -euo pipefail

GH_REPO="https://github.com/ngyewch/rtx-helper"
TOOL_NAME="rtx-helper"
TOOL_TEST="rtx-helper version"
GH_REPO="https://github.com/ngyewch/mise-helper"
TOOL_NAME="mise-helper"
TOOL_TEST="mise-helper version"

fail() {
echo -e "asdf-$TOOL_NAME: $*"
Expand All @@ -13,7 +13,7 @@ fail() {

curl_opts=(-fsSL)

# NOTE: You might want to remove this if rtx-helper is not hosted on GitHub releases.
# NOTE: You might want to remove this if mise-helper is not hosted on GitHub releases.
if [ -n "${GITHUB_API_TOKEN:-}" ]; then
curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN")
fi
Expand Down Expand Up @@ -98,7 +98,7 @@ download_release() {
version="$1"
filename="$2"

url="$GH_REPO/releases/download/v${version}/rtx-helper_${version}_$(get_platform)_$(get_arch).$(get_ext)"
url="$GH_REPO/releases/download/v${version}/mise-helper_${version}_$(get_platform)_$(get_arch).$(get_ext)"

echo "* Downloading $TOOL_NAME release $version..."
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
Expand All @@ -117,7 +117,7 @@ install_version() {
mkdir -p "$install_path"
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"

# TODO: Assert rtx-helper executable exists.
# TODO: Assert mise-helper executable exists.
local tool_cmd
tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)"
test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable."
Expand Down

0 comments on commit 0bb2198

Please sign in to comment.