Differentiate billable/non-billable
This commit is contained in:
11
mite/mite.go
11
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
|
||||
|
||||
Reference in New Issue
Block a user