You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/entries.go
+38-12Lines changed: 38 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,14 @@ var (
20
20
createNotestring
21
21
createProjectIdstring
22
22
createServiceIdstring
23
+
createActivitystring
23
24
editTimeEntryIdstring
24
25
editDatestring
25
26
editDurationstring
26
27
editNotestring
27
28
editProjectIdstring
28
29
editServiceIdstring
30
+
editActivitystring
29
31
deleteTimeEntryIdstring
30
32
)
31
33
@@ -47,6 +49,7 @@ func init() {
47
49
entriesCreateCommand.Flags().StringVarP(&createNote, "note", "n", "", "a note describing what was worked on")
48
50
entriesCreateCommand.Flags().StringVarP(&createProjectId, "projectid", "p", "", "project id for time entry (HINT: use the 'project' sub-command to find the id)")
49
51
entriesCreateCommand.Flags().StringVarP(&createServiceId, "serviceid", "s", "", "service id for time entry (HINT: use the 'service' sub-command to find the id)")
52
+
entriesCreateCommand.Flags().StringVarP(&createActivity, "activity", "a", "", "activity describing a specific project and service combination")
50
53
entriesCommand.AddCommand(entriesCreateCommand)
51
54
// edit
52
55
entriesEditCommand.Flags().StringVarP(&editDate, "date", "D", "", "day for which to edit entry (in YYYY-MM-DD format)")
@@ -55,6 +58,7 @@ func init() {
55
58
entriesEditCommand.Flags().StringVarP(&editTimeEntryId, "id", "i", "", "the time entry id to edit")
56
59
entriesEditCommand.Flags().StringVarP(&editProjectId, "projectid", "p", "", "project id for time entry (HINT: use the 'project' sub-command to find the id)")
57
60
entriesEditCommand.Flags().StringVarP(&editServiceId, "serviceid", "s", "", "service id for time entry (HINT: use the 'service' sub-command to find the id)")
61
+
entriesEditCommand.Flags().StringVarP(&editActivity, "activity", "a", "", "activity describing a specific project and service combination")
58
62
entriesCommand.AddCommand(entriesEditCommand)
59
63
// delete
60
64
entriesDeleteCommand.Flags().StringVarP(&deleteTimeEntryId, "id", "i", "", "the time entry id to delete")
@@ -114,15 +118,9 @@ var entriesCreateCommand = &cobra.Command{
0 commit comments