From 9fc8dbf4e167ae3d3a5fd602df74645e07d79679 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 14 Jan 2023 20:02:52 +0100 Subject: command: adapt the output of the bug list to the terminal size --- entity/id.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'entity/id.go') diff --git a/entity/id.go b/entity/id.go index 49398da8..0949bf92 100644 --- a/entity/id.go +++ b/entity/id.go @@ -11,7 +11,7 @@ import ( // sha-256 const idLength = 64 -const humanIdLength = 7 +const HumanIdLength = 7 const UnsetId = Id("unset") @@ -34,7 +34,7 @@ func (i Id) String() string { // Human return the identifier, shortened for human consumption func (i Id) Human() string { - format := fmt.Sprintf("%%.%ds", humanIdLength) + format := fmt.Sprintf("%%.%ds", HumanIdLength) return fmt.Sprintf(format, i) } -- cgit