MCPcopy Create free account
hub / github.com/driangle/taskmd / resetListFlags

Function resetListFlags

apps/cli/internal/cli/list_test.go:96–106  ·  view source on GitHub ↗

resetListFlags resets list command flags to defaults before each test.

()

Source from the content-addressed store, hash-verified

94
95// resetListFlags resets list command flags to defaults before each test.
96func resetListFlags() {
97 listFilters = []string{}
98 listSort = ""
99 listColumns = "id,title,status,priority,file"
100 listLimit = 0
101 listScope = ""
102 listPhase = ""
103 listStatus = ""
104 listPriority = ""
105 noColor = true
106}
107
108// captureListTableOutput runs outputTable and captures stdout.
109func captureListTableOutput(t *testing.T, tasks []*model.Task, columns string) string {

Calls

no outgoing calls

Tested by

no test coverage detected