-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Test binary, built with `go test -c` | ||
*.test | ||
syncher | ||
asdf-bootstrap | ||
asdf-bootstrap.zip | ||
.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
golang 1.15.3 | ||
asdf-bootstrap 0.0.12 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
[![license](https://img.shields.io/github/license/nwillc/asdf-bootstrap.svg)](https://tldrlegal.com/license/-isc-license) | ||
[![CI](https://github.com/nwillc/asdf-bootstrap/workflows/CI/badge.svg)](https://github.com/nwillc/asdf-bootstrap/actions?query=workflow%3CI) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/nwillc/asdf-bootstrap)](https://goreportcard.com/report/github.com/nwillc/asdf-bootstrap) | ||
[![license](https://img.shields.io/github/license/nwillc/syncher.svg)](https://tldrlegal.com/license/-isc-license) | ||
[![CI](https://github.com/nwillc/syncher/workflows/CI/badge.svg)](https://github.com/nwillc/syncher/actions?query=workflow%3CI) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/nwillc/syncher)](https://goreportcard.com/report/github.com/nwillc/syncher) | ||
----- | ||
# asdf-bootstrap | ||
# asdf syncher | ||
An [asdf](https://github.com/asdf-vm/asdf) plugin that reads an `.tool-versions` and generates the `asdf` commands to sync up with it. The use case is as follows. | ||
You and your teammates are using asdf to manage tools, you commit a `.tool-versions` update 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 `asdf-bootstrap` comes in. Run it, and save it's output as a script in the repo. | ||
where `syncher` comes in. Run it, and save it's output as a script in the repo. | ||
|
||
# Usage | ||
|
||
```bash | ||
asdf plugin-add asdf-bootstrap https://github.com/nwillc/asdf-bootstrap.git | ||
asdf list all asdf-bootstrap | ||
asdf install asdf-bootstrap 0.0.13 | ||
asdf local asdf-bootstrap 0.0.13 | ||
asdf asdf-bootstrap | ||
asdf plugin-add syncher https://github.com/nwillc/syncher.git | ||
asdf list all syncher | ||
asdf install syncher 0.0.13 | ||
asdf local syncher 0.0.13 | ||
asdf syncher | ||
``` | ||
|
||
The output from that should look like what you find here in `./bin/asdf-bootstrap.sh`. | ||
|
||
The output from that will be a shell script you can share. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github/nwillc/asdf-bootstrap | ||
module github/nwillc/syncher | ||
|
||
go 1.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ set \ | |
-o pipefail \ | ||
-o errexit | ||
|
||
$ASDF_DIR/shims/asdf-bootstrap | ||
$ASDF_DIR/shims/syncher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters