Skip to content

Commit

Permalink
Merge pull request #20 from Syuparn/fix-install
Browse files Browse the repository at this point in the history
Fix install
  • Loading branch information
Syuparn authored Apr 10, 2024
2 parents b556a46 + b299c70 commit a4d230f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.17
go-version: ^1.22
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
go-version: ^1.22
id: go

- name: Check out code into the Go module directory
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ executable go-template command (like awk and jq!)

Get binary [here](https://github.com/Syuparn/tmplscript/releases).

You can also install from `go get`.
You can also install from `go install`.

```bash
$ go get -u github.com/syuparn/tmplscript
$ go install github.com/syuparn/tmplscript@latest
```

# usage

```bash
$ go get -u github.com/syuparn/tmplscript
$ go install github.com/syuparn/tmplscript@latest
$ echo "hello" | tmplscript '{{print . ", " "world!"}}'
hello, world!
# read from file instead
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/syuparn/tmplscript

go 1.17
go 1.22

toolchain go1.22.1

require (
github.com/Masterminds/sprig/v3 v3.2.2
Expand Down

0 comments on commit a4d230f

Please sign in to comment.