From cfa11372cbcbb5f4553f3dcd8897d5f5207c6507 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 18 Jul 2018 16:41:09 +0200 Subject: implement label op+command --- commands/show.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'commands/show.go') diff --git a/commands/show.go b/commands/show.go index a8414384..c5a043c7 100644 --- a/commands/show.go +++ b/commands/show.go @@ -9,8 +9,6 @@ import ( "strings" ) -var line = strings.Repeat("-", 50) - func runShowBug(repo repository.Repo, args []string) error { if len(args) > 1 { return errors.New("Only showing one bug at a time is supported") @@ -47,6 +45,15 @@ func runShowBug(repo repository.Repo, args []string) error { firstComment.FormatTime(), ) + var labels = make([]string, len(snapshot.Labels)) + for i := range snapshot.Labels { + labels[i] = string(snapshot.Labels[i]) + } + + fmt.Printf("labels: %s\n\n", + strings.Join(labels, ", "), + ) + // Comments indent := " " -- cgit