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

Function newTimetrackListCommand

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

Source from the content-addressed store, hash-verified

190 fmt.Fprintf(w, "Title: %s\n", terminal.SanitizeLine(track.Title))
191 }
192 return nil
193 }
194
195 if track == nil {
196 return writeOK(nil, output.WithSummary("No active time track"))
197 }
198
199 return writeOK(track,
200 output.WithSummary(fmt.Sprintf("Active time track #%d", track.Id)),
201 )
202}
203
204// list
205
206type timetrackListCommand struct {
207 cmd *cobra.Command
208 limit int
209 all bool
210 category int64

Callers 1

newTimetrackCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected