Skip to content

Commit

Permalink
Goreleaser config update
Browse files Browse the repository at this point in the history
  • Loading branch information
aosasona committed Sep 1, 2024
1 parent 7baf191 commit 0319e69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ builds:
- main: ./cmd/bore
env:
- CGO_ENABLED=1
ldflags:
- -s -w -X main.version={{.Version}}
goos:
- linux
- windows
- darwin
goarch:
- amd64

archives:
- format: tar.gz
Expand Down
7 changes: 5 additions & 2 deletions cmd/bore/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ var (
// TODD: find a way to init this before anything is setup
app *boreapp.App
err error

version = "0.1.0"
)

func Execute() error {
Expand All @@ -26,8 +28,9 @@ func Execute() error {

func CreateRootCommand() *cli.App {
return &cli.App{
Name: "bore",
Usage: "A minimal clipboard manager for terminal/headless environments",
Name: "bore",
Usage: "A minimal clipboard manager for terminal/headless environments",
Version: version,
Action: func(c *cli.Context) error {
cli.ShowAppHelp(c)
return nil
Expand Down

0 comments on commit 0319e69

Please sign in to comment.