Skip to content

Commit

Permalink
fix: version option
Browse files Browse the repository at this point in the history
  • Loading branch information
vonglasow committed Apr 7, 2024
1 parent 78b3739 commit 2377e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
with:
hooks: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ var (
createConfig bool
versionFlag bool
version string = "dev"
commit string = "none"
date string = "unknown"
commitSHA string = "none"
buildDate string = "unknown"
)

type Config struct {
Expand Down Expand Up @@ -146,7 +146,7 @@ func main() {
Short: "gaia is a CLI tool",
Run: func(cmd *cobra.Command, args []string) {
if versionFlag {
fmt.Printf("Gaia %s, commit %s, built at %s", version, commit, date)
fmt.Printf("Gaia %s, commit %s, built at %s", version, commitSHA, buildDate)
os.Exit(0)
}

Expand Down

0 comments on commit 2377e04

Please sign in to comment.