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

Function resetSetFlags

apps/cli/internal/cli/set_test.go:109–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109func resetSetFlags() {
110 setTaskID = ""
111 setStatus = ""
112 setPriority = ""
113 setEffort = ""
114 setType = ""
115 setOwner = ""
116 setParent = ""
117 setDependsOn = ""
118 setPhase = ""
119 setDone = false
120 setDryRun = false
121 setVerify = false
122 setAddTags = nil
123 setRemoveTags = nil
124 setAddPRs = nil
125 setRemovePRs = nil
126 setAddTouches = nil
127 setRemoveTouches = nil
128 taskDir = "."
129
130 // Reset cobra flag Changed state to avoid test interference
131 for _, name := range []string{"status", "parent", "depends-on", "phase"} {
132 if f := setCmd.Flags().Lookup(name); f != nil {
133 f.Changed = false
134 }
135 }
136}
137
138func captureSetOutput(t *testing.T) (string, error) {
139 t.Helper()

Callers 15

TestSet_StatusFunction · 0.85
TestSet_PriorityFunction · 0.85
TestSet_EffortFunction · 0.85
TestSet_OwnerFunction · 0.85
TestSet_DoneFlagFunction · 0.85
TestSet_MultipleFieldsFunction · 0.85
TestSet_AllValidStatusesFunction · 0.85
TestSet_CancelledStatusFunction · 0.85
TestSet_AllValidEffortsFunction · 0.85
TestSet_InvalidStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected