Differentiate billable/non-billable
All checks were successful
CI / test (push) Successful in 1m4s
CI / build (push) Successful in 58s

This commit is contained in:
Justin Hawkins 2025-06-18 13:20:33 +02:00
parent 43845d28f1
commit 0d027788f1

View File

@ -129,8 +129,15 @@ type Service struct {
func (s Service) String() string { func (s Service) String() string {
return fmt.Sprintf("%d: %s", s.ID, s.Name) return fmt.Sprintf("%d: %s", s.ID, s.Name)
} }
func (s Service) GetID() int { return s.ID } func (s Service) GetID() int { return s.ID }
func (s Service) GetName() string { return s.Name } func (s Service) GetName() string {
prefix := "💰"
if !s.Billable {
prefix = "☮️"
}
return prefix + " " + s.Name
}
func (a APIClient) GetServices() (Services, error) { func (a APIClient) GetServices() (Services, error) {
// GET /services.json // GET /services.json