Skip to content

Commit

Permalink
add ascii art when using the version command (#1349)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <[email protected]>
  • Loading branch information
cpanato authored Jan 22, 2022
1 parent 4c23b55 commit 7572520
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ func (i *Info) String() string {
b := strings.Builder{}
w := tabwriter.NewWriter(&b, 0, 0, 2, ' ', 0)

fmt.Fprint(w, `
______ ______ _______. __ _______ .__ __.
/ | / __ \ / || | / _____|| \ | |
| ,----'| | | | | (---- | | | | __ | \| |
| | | | | | \ \ | | | | |_ | | . |
| '----.| '--' | .----) | | | | |__| | | |\ |
\______| \______/ |_______/ |__| \______| |__| \__|
`)
fmt.Fprint(w, "cosign: A tool for Container Signing, Verification and Storage in an OCI registry.\n\n")
fmt.Fprintf(w, "GitVersion:\t%s\n", i.GitVersion)
fmt.Fprintf(w, "GitCommit:\t%s\n", i.GitCommit)
fmt.Fprintf(w, "GitTreeState:\t%s\n", i.GitTreeState)
Expand Down

0 comments on commit 7572520

Please sign in to comment.