MCPcopy Create free account
hub / github.com/basecamp/hey-cli / newTimetrackCommand

Function newTimetrackCommand

internal/cmd/timetrack.go:17–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
23const maxTimeTrackPages = 100
24
25type timetrackCommand struct {
26 cmd *cobra.Command
27}
28
29func 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 },

Callers 1

newRootCmdFunction · 0.85

Calls 4

newTimetrackStartCommandFunction · 0.85
newTimetrackStopCommandFunction · 0.85
newTimetrackListCommandFunction · 0.85

Tested by

no test coverage detected