Skip to content

Commit 7572520

Browse files
authored
add ascii art when using the version command (#1349)
Signed-off-by: Carlos Panato <[email protected]>
1 parent 4c23b55 commit 7572520

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/version/version.go

+9
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ func (i *Info) String() string {
6666
b := strings.Builder{}
6767
w := tabwriter.NewWriter(&b, 0, 0, 2, ' ', 0)
6868

69+
fmt.Fprint(w, `
70+
______ ______ _______. __ _______ .__ __.
71+
/ | / __ \ / || | / _____|| \ | |
72+
| ,----'| | | | | (---- | | | | __ | \| |
73+
| | | | | | \ \ | | | | |_ | | . |
74+
| '----.| '--' | .----) | | | | |__| | | |\ |
75+
\______| \______/ |_______/ |__| \______| |__| \__|
76+
`)
77+
fmt.Fprint(w, "cosign: A tool for Container Signing, Verification and Storage in an OCI registry.\n\n")
6978
fmt.Fprintf(w, "GitVersion:\t%s\n", i.GitVersion)
7079
fmt.Fprintf(w, "GitCommit:\t%s\n", i.GitCommit)
7180
fmt.Fprintf(w, "GitTreeState:\t%s\n", i.GitTreeState)

0 commit comments

Comments
 (0)