Skip to content

Commit 6acc9df

Browse files
committed
Adapt asdf-katana to asdf-torii
1 parent 489a467 commit 6acc9df

File tree

5 files changed

+21
-61
lines changed

5 files changed

+21
-61
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- name: asdf_plugin_test
2020
uses: asdf-vm/actions/plugin-test@v4
2121
with:
22-
command: katana --version
22+
command: torii --version
2323
gitref: main
24-
version: 1.6.3
24+
version: 1.6.0

CHANGELOG.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div align="center">
22

3-
# asdf-katana [![Build](https://github.com/dojoengine/asdf-katana/actions/workflows/build.yml/badge.svg)](https://github.com/dojoengine/asdf-katana/actions/workflows/build.yml) [![Lint](https://github.com/dojoengine/asdf-katana/actions/workflows/lint.yml/badge.svg)](https://github.com/dojoengine/asdf-katana/actions/workflows/lint.yml)
3+
# asdf-torii [![Build](https://github.com/dojoengine/asdf-torii/actions/workflows/build.yml/badge.svg)](https://github.com/dojoengine/asdf-torii/actions/workflows/build.yml) [![Lint](https://github.com/dojoengine/asdf-torii/actions/workflows/lint.yml/badge.svg)](https://github.com/dojoengine/asdf-torii/actions/workflows/lint.yml)
44

5-
[katana](https://book.dojoengine.org/toolchain/katana) plugin for the [asdf version manager](https://asdf-vm.com).
5+
[torii](https://book.dojoengine.org/toolchain/torii) plugin for the [asdf version manager](https://asdf-vm.com).
66

77
</div>
88

@@ -16,32 +16,31 @@
1616
# Dependencies
1717

1818
- `bash`, `curl`, `tar`, `unzip` and [POSIX utilities](https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html).
19-
- Optional: Set `ASDF_NATIVE_BUILD=true` environment variable to download native builds (optimized for your specific platform).
2019

2120
# Install
2221

2322
Plugin:
2423

2524
```shell
26-
asdf plugin add katana
25+
asdf plugin add torii
2726
# or
28-
asdf plugin add katana https://github.com/dojoengine/asdf-katana.git
27+
asdf plugin add torii https://github.com/dojoengine/asdf-torii.git
2928
```
3029

31-
katana:
30+
torii:
3231

3332
```shell
3433
# Show all installable versions
35-
asdf list all katana
34+
asdf list all torii
3635

3736
# Install specific version
38-
asdf install katana latest
37+
asdf install torii latest
3938

4039
# Set a version globally (on your ~/.tool-versions file)
41-
asdf global katana latest
40+
asdf global torii latest
4241

43-
# Now katana commands are available
44-
katana --version
42+
# Now torii commands are available
43+
torii --version
4544
```
4645

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

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

54-
[Thanks goes to these contributors](https://github.com/dojoengine/asdf-katana/graphs/contributors)!
53+
[Thanks goes to these contributors](https://github.com/dojoengine/asdf-torii/graphs/contributors)!
5554

5655
# License
5756

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Testing Locally:
55
```shell
66
asdf plugin test <plugin-name> <plugin-url> [--asdf-tool-version <version>] [--asdf-plugin-gitref <git-ref>] [test-command*]
77

8-
asdf plugin test katana . --asdf-tool-version 1.6.3
8+
asdf plugin test torii . --asdf-tool-version 1.6.0
99
```
1010

1111
Tests are automatically run in GitHub Actions on push and PR.

lib/utils.bash

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
set -euo pipefail
44

5-
# This is the correct GitHub homepage where releases can be downloaded for katana.
6-
GH_REPO="https://github.com/dojoengine/katana"
7-
TOOL_NAME="katana"
8-
TOOL_TEST="katana --version"
5+
# This is the correct GitHub homepage where releases can be downloaded for torii.
6+
GH_REPO="https://github.com/dojoengine/torii"
7+
TOOL_NAME="torii"
8+
TOOL_TEST="torii --version"
99

1010
fail() {
1111
echo -e "asdf-$TOOL_NAME: $*"
@@ -14,7 +14,7 @@ fail() {
1414

1515
curl_opts=(-fsSL)
1616

17-
# NOTE: You might want to remove this if katana is not hosted on GitHub releases.
17+
# NOTE: You might want to remove this if torii is not hosted on GitHub releases.
1818
if [ -n "${GITHUB_API_TOKEN:-}" ]; then
1919
curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN")
2020
fi
@@ -116,12 +116,6 @@ get_binary_name() {
116116
# Get platform and architecture information to determine file extension
117117
read -r PLATFORM EXT ARCH <<<"$(detect_platform_arch)"
118118

119-
# Determine if we should use native build (defaults to non-native for compatibility)
120-
BUILD=""
121-
if [ "${ASDF_NATIVE_BUILD:-false}" = "true" ]; then
122-
BUILD="_native"
123-
fi
124-
125-
# i.e. katana_v1.6.3_darwin_arm64_native.tar.gz
126-
echo "${TOOL_NAME}_v${version}_${PLATFORM}_${ARCH}${BUILD}.${EXT}"
119+
# i.e. torii_v1.6.0_darwin_amd64.tar.gz
120+
echo "${TOOL_NAME}_v${version}_${PLATFORM}_${ARCH}.${EXT}"
127121
}

0 commit comments

Comments
 (0)