NewListOptions creates a new ListOptions instance
(list, listAll, listAsJson, noStatus, nested bool)
| 29 | |
| 30 | // NewListOptions creates a new ListOptions instance |
| 31 | func NewListOptions(list, listAll, listAsJson, noStatus, nested bool) ListOptions { |
| 32 | return ListOptions{ |
| 33 | ListOnlyTasksWithDescriptions: list, |
| 34 | ListAllTasks: listAll, |
| 35 | FormatTaskListAsJSON: listAsJson, |
| 36 | NoStatus: noStatus, |
| 37 | Nested: nested, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // ShouldListTasks returns true if one of the options to list tasks has been set to true |
| 42 | func (o ListOptions) ShouldListTasks() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…