From a0d509bcddf5ae0115c8679bbd81425696552b86 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 9 Aug 2018 15:28:32 +0200 Subject: termui: display status and label changes in show bug --- bug/status.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bug') diff --git a/bug/status.go b/bug/status.go index b1b066ff..0eee6cf1 100644 --- a/bug/status.go +++ b/bug/status.go @@ -18,3 +18,14 @@ func (s Status) String() string { return "unknown status" } } + +func (s Status) Action() string { + switch s { + case OpenStatus: + return "opened" + case ClosedStatus: + return "closed" + default: + return "unknown status" + } +} -- cgit