()
| 15 | "github.com/basecamp/hey-sdk/go/pkg/generated" |
| 16 | |
| 17 | "github.com/basecamp/hey-cli/internal/apierr" |
| 18 | safefiles "github.com/basecamp/hey-cli/internal/attachments" |
| 19 | "github.com/basecamp/hey-cli/internal/output" |
| 20 | "github.com/basecamp/hey-cli/internal/terminal" |
| 21 | ) |
| 22 | |
| 23 | const maxTimeTrackPages = 100 |
| 24 | |
| 25 | type timetrackCommand struct { |
| 26 | cmd *cobra.Command |
| 27 | } |
| 28 | |
| 29 | func newTimetrackCommand() *timetrackCommand { |
| 30 | timetrackCommand := &timetrackCommand{} |
| 31 | timetrackCommand.cmd = &cobra.Command{ |
| 32 | Use: "timetrack", |
| 33 | Short: "Track time", |
| 34 | Annotations: map[string]string{ |
| 35 | "agent_notes": "Subcommands: start, stop, current, list, edit, delete, export, categories, category. Use current to check if tracking is active before start/stop. Stop takes --category to file the track as it stops it. List, edit and delete work on completed tracks and take the IDs list reports. Export writes CSV to stdout or safely saves it with --output.", |
| 36 | }, |
no test coverage detected