Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Make it go installable (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 24, 2023
1 parent 1d1f989 commit 748ecaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ nix-headbump dev (rev) # unknown
(Will work with specific versions since v0.2.3)
```

`go install`

```console
> go install github.com/kachick/nix-headbump/cmd/nix-headbump@latest
go: downloading...
> ${GOPATH:-"$HOME/go"}/bin/nix-headbump --version
nix-headbump dev (rev) # unknown
```

## Usage

Providing two subcommands. I'm using `detect` in CI and `bump` in local.
Expand Down
2 changes: 1 addition & 1 deletion cmd/nix-headbump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

nhb "nix-headbump"
nhb "github.com/kachick/nix-headbump"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module nix-headbump
module github.com/kachick/nix-headbump

go 1.20

0 comments on commit 748ecaa

Please sign in to comment.