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

Function resolveInitAgents

apps/cli/internal/cli/project_init.go:237–250  ·  view source on GitHub ↗

resolveInitAgents sets agent flags via prompt if none were explicitly set.

(isTTY bool)

Source from the content-addressed store, hash-verified

235
236// resolveInitAgents sets agent flags via prompt if none were explicitly set.
237func resolveInitAgents(isTTY bool) {
238 // If any agent flag is set, respect it
239 if projectInitClaude || projectInitGemini || projectInitCodex || projectInitNoAgent {
240 return
241 }
242
243 if isTTY {
244 promptAgentSelection()
245 return
246 }
247
248 // Non-TTY with no agent flags: default to Claude
249 projectInitClaude = true
250}
251
252// promptAgentSelection shows a multi-select for agent configs.
253func promptAgentSelection() {

Callers 1

runProjectInitFunction · 0.85

Calls 1

promptAgentSelectionFunction · 0.85

Tested by

no test coverage detected