MCPcopy Create free account
hub / github.com/go-task/task / NewListOptions

Function NewListOptions

help.go:31–39  ·  view source on GitHub ↗

NewListOptions creates a new ListOptions instance

(list, listAll, listAsJson, noStatus, nested bool)

Source from the content-addressed store, hash-verified

29
30// NewListOptions creates a new ListOptions instance
31func 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
42func (o ListOptions) ShouldListTasks() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…