diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-18 16:41:09 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-18 16:41:09 +0200 |
commit | cfa11372cbcbb5f4553f3dcd8897d5f5207c6507 (patch) | |
tree | a5136685378a9c3310c86700bbeaf34338281f9a /commands/show.go | |
parent | ba3281dc9918fa49f10c2a166b5b631a931d2d51 (diff) | |
download | git-bug-cfa11372cbcbb5f4553f3dcd8897d5f5207c6507.tar.gz |
implement label op+command
Diffstat (limited to 'commands/show.go')
-rw-r--r-- | commands/show.go | 11 |
1 files changed, 9 insertions, 2 deletions
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 := " " |