File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,13 @@ import (
20
20
21
21
var (
22
22
// Version contains the current version.
23
- Version = "dev"
23
+ version = "dev"
24
24
// BuildDate contains a string with the build date.
25
- BuildDate = "unknown"
25
+ date = "unknown"
26
+ // commit
27
+ commit = "dirty"
28
+ // buildBy
29
+ builtBy = "local"
26
30
)
27
31
28
32
func main () {
@@ -37,11 +41,13 @@ func main() {
37
41
Name : "secrets-init" ,
38
42
Usage : "enrich environment variables with secrets from secret manager" ,
39
43
Action : mainCmd ,
40
- Version : Version ,
44
+ Version : version ,
41
45
}
42
46
cli .VersionPrinter = func (c * cli.Context ) {
43
- fmt .Printf ("secrets-init %s\n " , Version )
44
- fmt .Printf (" build date: %s\n " , BuildDate )
47
+ fmt .Printf ("secrets-init %s\n " , version )
48
+ fmt .Printf (" build date: %s\n " , date )
49
+ fmt .Printf (" commit: %s\n " , commit )
50
+ fmt .Printf (" built by: %s\n " , builtBy )
45
51
fmt .Printf (" built with: %s\n " , runtime .Version ())
46
52
}
47
53
You can’t perform that action at this time.
0 commit comments