()
| 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 | |
| 206 | type timetrackListCommand struct { |
| 207 | cmd *cobra.Command |
| 208 | limit int |
| 209 | all bool |
| 210 | category int64 |
no outgoing calls
no test coverage detected