sigstore / k8s-manifest-sigstore

kubectl plugin for signing Kubernetes manifest YAML files with sigstore
Apache License 2.0
79 stars 21 forks source link

enable `version` command to show version of the executable #40

Closed hirokuni-kitahara closed 3 years ago

hirokuni-kitahara commented 3 years ago

Signed-off-by: Hirokuni-Kitahara1 hirokuni.kitahara1@ibm.com

Example

$ kubectl sigstore version
{"Major":"","Minor":"","GitVersion":"develop","GitCommit":"6a68624364450d015ee1abc75fb5647a8d7b18d4","GitTreeState":"dirty","BuildDate":"2021-09-07T06:49:43Z","GoVersion":"go1.16.2","Compiler":"gc","Platform":"darwin/amd64"}

# example output after setting tag for a commit
$ kubectl sigstore version
{"Major":"0","Minor":"1","GitVersion":"v0.1.0","GitCommit":"6a68624364450d015ee1abc75fb5647a8d7b18d4","GitTreeState":"dirty","BuildDate":"2021-09-07T06:49:43Z","GoVersion":"go1.16.2","Compiler":"gc","Platform":"darwin/amd64"}