(pri string)
| 101 | } |
| 102 | |
| 103 | func priorityColor(pri string) string { |
| 104 | switch pri { |
| 105 | case "high": |
| 106 | return listfmt.Bold |
| 107 | case "low": |
| 108 | return listfmt.Dim |
| 109 | } |
| 110 | return "" |
| 111 | } |
| 112 | |
| 113 | // emptyResult prints the conventional "(no X)" line and returns 0. Honors |
| 114 | // the requested format: JSON emits "[]", TSV emits a header-only stream, |
no outgoing calls
no test coverage detected