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 cd918a9 + ac22f12 commit acdc4f1
Show file tree
Hide file tree
Showing 2 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
2 changes: 1 addition & 1 deletion backend/statik/statik.go

Large diffs are not rendered by default.

0 comments on commit acdc4f1

Please sign in to comment.