Skip to content

Commit

Permalink
Use short format
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki committed Oct 16, 2017
1 parent 4973fb0 commit 592aa08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/release/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ func (b *Binary) shortChecksum() string {

// Inspect prints the binary information.
func (b *Binary) Inspect(w io.Writer) {
fmt.Fprintf(w, "%s\t%s\t%s\t", b.Name, b.Version, b.shortChecksum())
fmt.Fprintf(w, "%s/%s/%s\t", b.Name, b.Version, b.shortChecksum())
}
2 changes: 1 addition & 1 deletion pkg/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (rel *Release) Timestamp() string {
func (rel *Release) Inspect(w io.Writer) {
fmt.Fprintf(w, "NAME\tTIMESTAMP\t")
for i := 1; i <= len(rel.Meta.Binaries); i++ {
fmt.Fprintf(w, "BINNAME%d\tBINVERSION%d\tBINCHECKSUM%d\t", i, i, i)
fmt.Fprintf(w, "BINNARY%d\t", i)
}
fmt.Fprintln(w)
fmt.Fprintf(w, "%s\t%s\t", rel.Name(), rel.Timestamp())
Expand Down

0 comments on commit 592aa08

Please sign in to comment.