Skip to content

Commit

Permalink
add version commit
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Mar 31, 2022
1 parent bfd1b44 commit 83359ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions constant/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package constant

var (
Version = "unknown version"
Commit = "unknown commit"
BuildTime = "unknown time"
)
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

if *show_version {
fmt.Printf("Ncp %s %s %s %s\n", C.Version, runtime.GOOS, runtime.GOARCH, C.BuildTime)
fmt.Printf("Ncp %s %s %s %s %s\n", C.Version, C.Commit, runtime.GOOS, runtime.GOARCH, C.BuildTime)
return
}

Expand Down

0 comments on commit 83359ac

Please sign in to comment.