Skip to content

Commit 474892f

Browse files
committed
fixed broken 'show info' max bounds display
1 parent 78fbdc0 commit 474892f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ all: build
44

55
build:
66
mkdir -p ./bin
7-
go build -ldflags="-X 'github.com/rahji/greyscale/cmd.version=1.0.0'" -o ./bin/${BINARY_NAME} main.go
7+
go build -ldflags="-X 'github.com/rahji/greyscale/cmd.version=1.0.1'" -o ./bin/${BINARY_NAME} main.go
88
test:
99
go test -v main.go
1010

1111
run:
1212
mkdir -p ./bin
13-
go build -ldflags="-X 'github.com/rahji/greyscale/cmd.version=1.0.0'" -o ./bin/${BINARY_NAME} main.go
13+
go build -ldflags="-X 'github.com/rahji/greyscale/cmd.version=1.0.1'" -o ./bin/${BINARY_NAME} main.go
1414
./bin/${BINARY_NAME}
1515

1616
clean:

cmd/info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ which can be useful for scripts or piping the output to another command.
9696
out.WriteString(fmt.Sprintf("|Filetype|%s|\n", filetype))
9797
out.WriteString(fmt.Sprintf("|Color Model|%s|\n", colorModelName))
9898
out.WriteString(fmt.Sprintf("|Min Bounds|%d x %d|\n", bounds.Min.X, bounds.Min.Y))
99-
out.WriteString(fmt.Sprintf("|Max Bounds||%d x %d|\n", bounds.Max.X, bounds.Max.Y))
99+
out.WriteString(fmt.Sprintf("|Max Bounds|%d x %d|\n", bounds.Max.X, bounds.Max.Y))
100100
out.WriteString(fmt.Sprintf("|Total Pixels|%d|\n\n", numpix))
101101
md, _ := glamour.Render(out.String(), "dark")
102102
fmt.Print(md)

0 commit comments

Comments
 (0)