We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b7cdc commit c9c6477Copy full SHA for c9c6477
1 file changed
internal/cli/root.go
@@ -67,8 +67,12 @@ var versionCmd = &cobra.Command{
67
Short: "Print version information",
68
Run: func(cmd *cobra.Command, args []string) {
69
fmt.Printf("cryptoscan %s\n", version)
70
- fmt.Printf(" commit: %s\n", commit)
71
- fmt.Printf(" built: %s\n", buildDate)
+ if commit != "none" {
+ fmt.Printf(" commit: %s\n", commit)
72
+ }
73
+ if buildDate != "unknown" {
74
+ fmt.Printf(" built: %s\n", buildDate)
75
76
fmt.Printf("\nPart of QRAMM - https://qramm.org\n")
77
fmt.Printf("Copyright 2025 CSNP - https://csnp.org\n")
78
},
0 commit comments