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

Function getProjectInitAgents

apps/cli/internal/cli/project_init.go:579–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

577}
578
579func getProjectInitAgents() []agentConfig {
580 var agents []agentConfig
581
582 // If no agent flags specified, default to Claude
583 if !projectInitClaude && !projectInitGemini && !projectInitCodex {
584 projectInitClaude = true
585 }
586
587 if projectInitClaude {
588 agents = append(agents, agentConfig{
589 name: "Claude Code",
590 filename: "CLAUDE.md",
591 template: claudeTemplate,
592 })
593 }
594
595 if projectInitGemini {
596 agents = append(agents, agentConfig{
597 name: "Gemini",
598 filename: "GEMINI.md",
599 template: geminiTemplate,
600 })
601 }
602
603 if projectInitCodex {
604 agents = append(agents, agentConfig{
605 name: "Codex",
606 filename: "AGENTS.md",
607 template: codexTemplate,
608 })
609 }
610
611 return agents
612}
613
614// ensureTaskDir creates the task directory if it doesn't exist.
615func ensureTaskDir(path string, quiet bool) (created bool, err error) {

Callers 1

collectInitFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected