Skip to content

Commit

Permalink
Merge pull request #4 from rynkowsg/g/misc-240413
Browse files Browse the repository at this point in the history
fix: Fix of `list-all` + lots of refactorings
  • Loading branch information
rynkowsg authored Apr 13, 2024
2 parents b89b2c4 + be819a6 commit 65af4a8
Show file tree
Hide file tree
Showing 24 changed files with 92 additions and 199 deletions.
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.

2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v4.1.2 # https://github.com/actions/checkout/releases
- name: Check workflow files
uses: docker://rhysd/actionlint:1.6.26 # https://hub.docker.com/r/rhysd/actionlint/tags
uses: docker://rhysd/actionlint:1.6.27 # https://hub.docker.com/r/rhysd/actionlint/tags
with:
args: -color
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
plugin_test:
name: clj-kondo plugin test
name: plugin test
strategy:
matrix:
os:
Expand Down
4 changes: 2 additions & 2 deletions @bin/format.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ set -euo pipefail
# Path Initialization
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P || exit 1)"
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd -P || exit 1)"
export SHELL_GR_DIR="${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
# Library Sourcing
source "${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@1a30383/lib/tool/format.bash" # format_with_env
source "${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/tool/format.bash" # format_with_env

main() {
local format_cmd_type="${1:-"apply"}"
Expand Down
4 changes: 2 additions & 2 deletions @bin/lint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ set -euo pipefail
# Path Initialization
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P || exit 1)"
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd -P || exit 1)"
export SHELL_GR_DIR="${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
# Library Sourcing
source "${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@1a30383/lib/tool/lint.bash" # lint
source "${ROOT_DIR}/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/tool/lint.bash" # lint

main() {
local error=0
Expand Down
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
<div align="center">

# asdf-clj-kondo [![Build](https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/test.yml/badge.svg)](https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/test.yml) [![Lint](https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/lint.yml/badge.svg)](https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/lint.yml)

[clj-kondo](https://github.com/clj-kondo/clj-kondo) plugin for the [asdf version manager](https://asdf-vm.com).
# asdf-clj-kondo
[![GitHub Actions Test Status][ci-actions-test-badge]][ci-actions-test]
[![GitHub Actions Lint Status][ci-actions-lint-badge]][ci-actions-lint]
[![CircleCI Lint Status][ci-circleci-lint-badge]][ci-circleci-lint]
[![License][license-badge]][license]

[ci-actions-test-badge]: https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/test.yml/badge.svg
[ci-actions-test]: https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/test.yml
[ci-actions-lint-badge]: https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/lint.yml/badge.svg
[ci-actions-lint]: https://github.com/rynkowsg/asdf-clj-kondo/actions/workflows/lint.yml
[ci-circleci-lint-badge]: https://circleci.com/gh/rynkowsg/asdf-clj-kondo.svg?style=shield
[ci-circleci-lint]: https://circleci.com/gh/rynkowsg/asdf-clj-kondo
[license-badge]: https://img.shields.io/badge/license-MIT-lightgrey.svg
[license]: LICENSE

[clj-kondo] plugin for the [asdf version manager][asdf-website].

[asdf-website]: https://asdf-vm.com
[asdf-repo]: https://github.com/asdf-vm/asdf
[clj-kondo]: https://github.com/clj-kondo/clj-kondo

</div>


## Contents

- [Dependencies](#dependencies)
- [Install](#install)
- [Contributing](#contributing)
- [License](#license)

## Dependencies
Expand Down Expand Up @@ -41,14 +58,8 @@ asdf global clj-kondo latest
clj-kondo --help
```

Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to install & manage versions.

## Contributing

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

[Thanks goes to these contributors](https://github.com/rynkowsg/asdf-clj-kondo/graphs/contributors)!
Check [asdf][asdf-repo] readme for more instructions on how to install & manage versions.

## License

Licensed under the [MIT license](LICENSE).
Licensed under the [MIT license][license].
8 changes: 4 additions & 4 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ if [ -z "${SHELL_GR_DIR:-}" ]; then
SCRIPT_PATH="$([[ ! "${SCRIPT_PATH_1}" =~ /bash$ ]] && readlink -f "${SCRIPT_PATH_1}" || echo "")"
SCRIPT_DIR="$([ -n "${SCRIPT_PATH}" ] && (cd "$(dirname "${SCRIPT_PATH}")" && pwd -P) || echo "")"
ROOT_DIR="$([ -n "${SCRIPT_DIR}" ] && (cd "${SCRIPT_DIR}/.." && pwd -P) || echo "/tmp")"
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
fi
# Library Sourcing
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/error.bash" # fail
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/log.bash" # log_debug
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__download
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/error.bash" # fail
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__download
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/log.bash" # log_debug

# `bin/download` spec: https://github.com/asdf-vm/asdf/blob/master/docs/plugins/create.md#bindownload-
main() {
Expand Down
8 changes: 4 additions & 4 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ if [ -z "${SHELL_GR_DIR:-}" ]; then
SCRIPT_PATH="$([[ ! "${SCRIPT_PATH_1}" =~ /bash$ ]] && readlink -f "${SCRIPT_PATH_1}" || echo "")"
SCRIPT_DIR="$([ -n "${SCRIPT_PATH}" ] && (cd "$(dirname "${SCRIPT_PATH}")" && pwd -P) || echo "")"
ROOT_DIR="$([ -n "${SCRIPT_DIR}" ] && (cd "${SCRIPT_DIR}/.." && pwd -P) || echo "/tmp")"
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
fi
# Library Sourcing
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/error.bash" # fail
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__install_downloaded
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/log.bash" # log_debug
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/error.bash" # fail
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__install_downloaded
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/log.bash" # log_debug

# `bin/install` spec: https://github.com/asdf-vm/asdf/blob/master/docs/plugins/create.md#bininstall-
main() {
Expand Down
6 changes: 3 additions & 3 deletions bin/latest-stable
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ if [ -z "${SHELL_GR_DIR:-}" ]; then
SCRIPT_PATH="$([[ ! "${SCRIPT_PATH_1}" =~ /bash$ ]] && readlink -f "${SCRIPT_PATH_1}" || echo "")"
SCRIPT_DIR="$([ -n "${SCRIPT_PATH}" ] && (cd "$(dirname "${SCRIPT_PATH}")" && pwd -P) || echo "")"
ROOT_DIR="$([ -n "${SCRIPT_DIR}" ] && (cd "${SCRIPT_DIR}/.." && pwd -P) || echo "/tmp")"
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
fi
# Library Sourcing
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__latest_stable
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/log.bash" # log_debug
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__latest_stable
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/log.bash" # log_debug

# `bin/latest-stable` spec: https://github.com/asdf-vm/asdf/blob/master/docs/plugins/create.md#binlatest-stable-
main() {
Expand Down
8 changes: 4 additions & 4 deletions bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ if [ -z "${SHELL_GR_DIR:-}" ]; then
SCRIPT_PATH="$([[ ! "${SCRIPT_PATH_1}" =~ /bash$ ]] && readlink -f "${SCRIPT_PATH_1}" || echo "")"
SCRIPT_DIR="$([ -n "${SCRIPT_PATH}" ] && (cd "$(dirname "${SCRIPT_PATH}")" && pwd -P) || echo "")"
ROOT_DIR="$([ -n "${SCRIPT_DIR}" ] && (cd "${SCRIPT_DIR}/.." && pwd -P) || echo "/tmp")"
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383" # needed for shell-gr to resolve paths
export SHELL_GR_DIR="${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a" # needed for shell-gr to resolve paths
fi
# Library Sourcing
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__list_all_versions
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@1a30383/lib/log.bash" # log_debug
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/install/clj_kondo.bash" # GRI_CLJ_KONDO__list_all_versions
source "${ROOT_DIR}/lib/.github_deps/rynkowsg/shell-gr@a5fad6a/lib/log.bash" # log_debug

# `bin/list-all` spec: https://github.com/asdf-vm/asdf/blob/master/docs/plugins/create.md#binlist-all-
main() {
Expand All @@ -36,7 +36,7 @@ main() {
log_debug "ASDF_INSTALL_VERSION: ${ASDF_INSTALL_VERSION:-}"
log_debug "ASDF_INSTALL_PATH: ${ASDF_INSTALL_PATH:-}"

GRI_CLJ_KONDO__latest_stable
GRI_CLJ_KONDO__list_all_versions
}

main "$@"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) 2024. All rights reserved.
# Copyright (c) 2024 Greg Rynkowski. All rights reserved.
# License: MIT License

# Path Initialization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) 2024. All rights reserved.
# Copyright (c) 2024 Greg Rynkowski. All rights reserved.
# License: MIT License

# Debug disabled by default
Expand Down
Loading

0 comments on commit 65af4a8

Please sign in to comment.