Skip to content

Commit

Permalink
Merge pull request #122 from deggja/fix/bug_115
Browse files Browse the repository at this point in the history
fix: implement dynamic app version
  • Loading branch information
deggja authored Feb 9, 2024
2 parents ad519f1 + 506b8f1 commit 136509b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
)

const version = "3.2.1"
var Version string

var rootCmd = &cobra.Command{
Use: "netfetch",
Expand All @@ -33,7 +33,7 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Netfetch",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Netfetch Version: %s\n", version)
fmt.Printf(Version + "\n")
},
}

Expand Down
Binary file modified backend/netfetch
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/statik/statik.go

Large diffs are not rendered by default.

0 comments on commit 136509b

Please sign in to comment.