https://github.com/nwillc/syncher
A program that reads an .tool-versions and generates the asdf commands needed.
https://github.com/nwillc/syncher
Last synced: 6 months ago
JSON representation
A program that reads an .tool-versions and generates the asdf commands needed.
- Host: GitHub
- URL: https://github.com/nwillc/syncher
- Owner: nwillc
- License: isc
- Created: 2020-11-15T04:31:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T18:05:08.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T15:57:28.449Z (about 2 years ago)
- Language: Shell
- Size: 79.1 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://tldrlegal.com/license/-isc-license)
[](https://github.com/nwillc/syncher/actions?query=workflow%3CI)
[](https://goreportcard.com/report/github.com/nwillc/syncher)
-----
# asdf syncher
An [asdf](https://github.com/asdf-vm/asdf) plugin that reads a `.tool-versions` and generates the `asdf` commands to sync
up with it.
The use case is, you and your teammates are using asdf to manage tools, you commit a `.tool-versions` into a repo.
Someone else clones the repo. They need to install all the required plugins and tool versions implied by the
`.tool-versions`. That's where `syncher` comes in. Run it, and save it's output as a script in the repo. Others then can
clone the repo, run the `syncher` script, and they will add all the plugins needed as well as install the required tool
versions.
# Usage
```bash
# Initial setup
asdf plugin-add syncher https://github.com/nwillc/syncher.git
asdf install syncher $(asdf list all syncher | tail -1)
asdf global syncher $(asdf list all syncher | tail -1)
asdf reshim syncher
# Use going forward
asdf syncher
```
The output from `asdf syncher` will be a shell script that syncs up the plugins and installations.
# Architectures Released
The releases are available for:
- darwin (OSX): amd64, arm64
- linux: amd64, 386