Skip to content

Commit

Permalink
remove so much cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Oct 31, 2023
1 parent 3205bc0 commit a315767
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 332 deletions.
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/PULL_REQUEST/pull_request_template.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
plugin_test:
name: asdf plugin test
name: plugin test
strategy:
matrix:
os:
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/release.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/semantic-pr.yml

This file was deleted.

41 changes: 24 additions & 17 deletions bin/download
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
#!/usr/bin/env bash

set -euo pipefail

current_script_path=${BASH_SOURCE[0]}
plugin_dir=$(dirname "$(dirname "$current_script_path")")

# shellcheck source=./lib/utils.bash
source "${plugin_dir}/lib/utils.bash"
set -eux

mkdir -p "$ASDF_DOWNLOAD_PATH"

release_file="$ASDF_DOWNLOAD_PATH/dt.tgz"

# Download tar.gz file to the download directory
download_release "$ASDF_INSTALL_VERSION" "$release_file"

# Extract contents of tar.gz file into the download directory
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"

# Remove the tar.gz file since we don't need to keep it
rm "$release_file"
host_zig_triple() {
_arch="$(uname -m)"
case "$_arch" in
arm64) echo -n 'aarch64-' ;;
amd64) echo -n 'x86_64-' ;;
*) echo -n "$_arch-" ;;
esac

case "$(uname -s | tr A-Z a-z)" in
linux) echo -n 'linux-gnu' ;;
*bsd) echo -n 'linux-gnu' ;;
osx | darwin | mac*) echo -n 'macos-none' ;;
esac
}

url="$GH_REPO/releases/download/v${ASDF_INSTALL_VERSION}/dt-$(host_zig_triple).tgz"

curl "$url" \
-o "$ASDF_DOWNLOAD_PATH/" \
-C -

tar -xzf "$release_file" \
-C "$ASDF_DOWNLOAD_PATH"
16 changes: 10 additions & 6 deletions bin/install
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/usr/bin/env bash

set -euo pipefail
set -eux

current_script_path=${BASH_SOURCE[0]}
plugin_dir=$(dirname "$(dirname "$current_script_path")")
if [ "$ASDF_INSTALL_TYPE" != "version" ]
then
>&2 echo 'asdf-dt supports release installs only'
exit 1
fi

# shellcheck source=./lib/utils.bash
source "${plugin_dir}/lib/utils.bash"
mkdir -p "$ASDF_INSTALL_PATH"

install_version "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"
cp "$ASDF_DOWNLOAD_PATH"/dt "$ASDF_INSTALL_PATH/bin/dt"

test -x "$ASDF_INSTALL_PATH/bin/dt --version"
29 changes: 0 additions & 29 deletions bin/latest-stable

This file was deleted.

11 changes: 4 additions & 7 deletions bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -euo pipefail

current_script_path=${BASH_SOURCE[0]}
plugin_dir=$(dirname "$(dirname "$current_script_path")")

# shellcheck source=./lib/utils.bash
source "${plugin_dir}/lib/utils.bash"

list_all_versions | sort_versions | xargs echo
curl https://github.com/so-dang-cool/dt/releases.atom 2>/dev/null \
| grep \<id\> \
| awk '/<id>.+\/v/ { sub(/.+\/v/, ""); sub(/<.+>/, ""); print $1 }' \
| tac
12 changes: 0 additions & 12 deletions contributing.md

This file was deleted.

85 changes: 0 additions & 85 deletions lib/utils.bash

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/format.bash

This file was deleted.

Loading

0 comments on commit a315767

Please sign in to comment.