diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5a137ab --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build + +on: + push: + branches: + - main + pull_request: + +jobs: + plugin_test: + name: asdf plugin test + strategy: + matrix: + os: + - macos-latest + - ubuntu-latest + + runs-on: ${{ matrix.os }} + + steps: + - name: asdf_plugin_test + uses: asdf-vm/actions/plugin-test@v2 + with: + command: jbang version \ No newline at end of file diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml deleted file mode 100644 index 0f9c194..0000000 --- a/.github/workflows/workflow.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Main workflow - -on: - push: - paths-ignore: - - "**.md" - pull_request: - paths-ignore: - - "**.md" - -jobs: - plugin_test: - strategy: - matrix: - os: - - macos-latest - - ubuntu-latest - - runs-on: ${{ matrix.os }} - - steps: - - name: asdf_plugin_test - uses: asdf-vm/actions/plugin-test@v1 - with: - command: jbang version - env: - GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 31ffc9c..77a8aac 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,29 @@ -# jbang-asdf +# jbang-asdf [![Build](https://github.com/jbangdev/jbang-asdf/workflows/build/badge.svg)](https://github.com/jbangdev/jbang-asdf/actions) [![License](https://img.shields.io/github/license/jbangdev/jbang-asdf?style=plastic)](https://github.com/jbangdev/jbang-asdf/blob/master/LICENSE) -[![GitHub Actions Status](https://github.com/jbangdev/jbang-asdf/workflows/Main%20workflow/badge.svg?branch=main)](https://github.com/jbangdev/jbang-asdf/actions) -[![GitHub license](https://img.shields.io/github/license/jbangdev/jbang-asdf?style=plastic)](https://github.com/jbangdev/jbang-asdf/blob/master/LICENSE) +[jbang](https://jbang.dev/) plugin for the [asdf version manager](https://asdf-vm.com). -## jbang - - - -## Install +## Install Plugin ```bash -asdf plugin-add jbang https://github.com/jbangdev/jbang-asdf +asdf plugin-add jbang +or +asdf plugin-add https://github.com/jbangdev/jbang-asdf ``` -## Use +## Install jbang + +```shell +# Show all installable versions +asdf list-all jbang + +# Install specific version +asdf install jbang latest + +# Set a version globally (on your ~/.tool-versions file) +asdf global jbang latest + +# Now ag commands are available +jbang +``` Check out the [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to install and manage versions of `jbang`.