Skip to content

Commit

Permalink
Update to go 1.18 and sets up GoReleaser to easily download binary wi…
Browse files Browse the repository at this point in the history
…th curl
  • Loading branch information
Arthur Legrand committed Aug 19, 2022
1 parent 2995123 commit 2f0d12c
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
*.sh
sponge
vendor/
dist/
21 changes: 0 additions & 21 deletions .gitlab-ci.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# sponge
[![GoDoc](https://godoc.org/gitlab.com/tslocum/sponge?status.svg)](https://godoc.org/gitlab.com/tslocum/sponge)
[![CI status](https://gitlab.com/tslocum/sponge/badges/master/pipeline.svg)](https://gitlab.com/tslocum/sponge/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
This repository was forked from [this repository](https://code.rocketnine.space/tslocum/sponge)

Soaks up all input from stdin and writes it to a file or stdout. Pipelines
reading from and writing to the same file may be safely constructed.
Expand All @@ -12,14 +10,18 @@ reading from and writing to the same file may be safely constructed.

```go get gitlab.com/tslocum/sponge```

Or download the binary in the [release page](https://github.com/flinkstech/sponge/releases)

## Usage

```sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout```

## Support

Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge/issues).
Please share issues and suggestions [here](https://github.com/flinkstech/sponge/issues).

## Credits

sponge was originally written in C by Tollef Fog Heen.
sponge was originally written in C by Tollef Fog Heen.

This Go port was initially written by [Trevor Slocum](https://code.rocketnine.space/tslocum/)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gitlab.com/tslocum/sponge

go 1.12
go 1.18

0 comments on commit 2f0d12c

Please sign in to comment.