diff --git a/cmd/client/earmarks.go b/cmd/client/earmarks.go index 29a2b19..ef807da 100644 --- a/cmd/client/earmarks.go +++ b/cmd/client/earmarks.go @@ -17,21 +17,21 @@ import ( const earmarkTpl = ` {{- /* whitespace fix */ -}} -- ref_id: {{.RefId}} - event_item_ref_id: {{.EventItemRefId}} - note: {{.Note}} - owner: {{.Owner}} - created: {{.Created.AsTime.Format "2006-01-02T15:04:05Z07:00"}} +- ref_id: {{.GetRefId}} + event_item_ref_id: {{.GetEventItemRefId}} + note: {{.GetNote}} + owner: {{.GetOwner}} + created: {{.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00"}} ` const earmarkDetailTpl = ` {{- /* whitespace fix */ -}} -- ref_id: {{.Earmark.RefId}} - event_item_ref_id: {{.Earmark.EventItemRefId}} - event_ref_id: {{.EventRefId}} - note: {{.Earmark.Note}} - owner: {{.Earmark.Owner}} - created: {{.Earmark.Created.AsTime.Format "2006-01-02T15:04:05Z07:00"}} +- ref_id: {{.GetEarmark.GetRefId}} + event_item_ref_id: {{.GetEarmark.GetEventItemRefId}} + event_ref_id: {{.GetEventRefId}} + note: {{.GetEarmark.GetNote}} + owner: {{.GetEarmark.GetOwner}} + created: {{.GetEarmark.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00"}} ` type EarmarksCreateCmd struct { diff --git a/cmd/client/event_items.go b/cmd/client/event_items.go index d436dff..061b98e 100644 --- a/cmd/client/event_items.go +++ b/cmd/client/event_items.go @@ -17,9 +17,9 @@ import ( const eventItemTpl = ` {{- /* whitespace fix */ -}} -- event_item_ref_id: {{.RefId}} - description: {{.Description}} - created: {{.Created.AsTime.Format "2006-01-02T15:04:05Z07:00"}} +- event_item_ref_id: {{.GetRefId}} + description: {{.GetDescription}} + created: {{.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00"}} ` type EventItemsAddCmd struct { diff --git a/cmd/client/events.go b/cmd/client/events.go index 70a2437..d73bed3 100644 --- a/cmd/client/events.go +++ b/cmd/client/events.go @@ -20,13 +20,13 @@ import ( const eventTpl = ` {{- /* whitespace fix */ -}} -- ref_id: {{.RefId}} - name: {{.Name}} - description: {{.Description}} - archived: {{.Archived}} - when: {{.When.Ts.AsTime.Format "2006-01-02T15:04:05Z07:00"}} - tz: {{.When.Tz}} - created: {{.Created.AsTime.Format "2006-01-02T15:04:05Z07:00"}} +- ref_id: {{.GetRefId}} + name: {{.GetName}} + description: {{.GetDescription}} + archived: {{.GetArchived}} + when: {{.GetWhen.GetTs.AsTime.Format "2006-01-02T15:04:05Z07:00"}} + tz: {{.GetWhen.GetTz}} + created: {{.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00"}} ` type EventsListCmd struct { diff --git a/cmd/client/favorites.go b/cmd/client/favorites.go index 8366c21..d4c3633 100644 --- a/cmd/client/favorites.go +++ b/cmd/client/favorites.go @@ -18,8 +18,8 @@ import ( const favoriteTpl = ` {{- /* whitespace fix */ -}} -- event_ref_id: {{.EventRefId}} - created: {{.Created.AsTime.Format "2006-01-02T15:04:05Z07:00"}} +- event_ref_id: {{.GetEventRefId}} + created: {{.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00"}} ` type FavoritesListCmd struct { diff --git a/cmd/client/notifications.go b/cmd/client/notifications.go index 1bf1b8b..6647f32 100644 --- a/cmd/client/notifications.go +++ b/cmd/client/notifications.go @@ -17,9 +17,9 @@ import ( const notifTpl = ` {{- /* whitespace fix */ -}} -- ref_id: {{.RefId}} - message: {{.Message}} - created: {{.Created.AsTime.Format "2006-01-02T15:04:05Z07:00" }} +- ref_id: {{.GetRefId}} + message: {{.GetMessage}} + created: {{.GetCreated.AsTime.Format "2006-01-02T15:04:05Z07:00" }} ` type NotificationsListCmd struct{}