From 0d027788f1580bf30844d651ca1c6d41da9867d1 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Wed, 18 Jun 2025 13:20:33 +0200 Subject: [PATCH] Differentiate billable/non-billable --- mite/mite.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mite/mite.go b/mite/mite.go index 33ccce9..f555ec2 100644 --- a/mite/mite.go +++ b/mite/mite.go @@ -129,8 +129,15 @@ type Service struct { func (s Service) String() string { return fmt.Sprintf("%d: %s", s.ID, s.Name) } -func (s Service) GetID() int { return s.ID } -func (s Service) GetName() string { return s.Name } +func (s Service) GetID() int { return s.ID } +func (s Service) GetName() string { + prefix := "💰" + if !s.Billable { + prefix = "☮️" + } + return prefix + " " + s.Name + +} func (a APIClient) GetServices() (Services, error) { // GET /services.json