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

Function createConfigFile

apps/cli/internal/cli/config_test.go:32–39  ·  view source on GitHub ↗

createConfigFile creates a .taskmd.yaml file with the given content

(t *testing.T, dir, content string)

Source from the content-addressed store, hash-verified

30
31// createConfigFile creates a .taskmd.yaml file with the given content
32func createConfigFile(t *testing.T, dir, content string) string {
33 t.Helper()
34 configPath := filepath.Join(dir, ".taskmd.yaml")
35 if err := os.WriteFile(configPath, []byte(content), 0644); err != nil {
36 t.Fatalf("failed to create config file: %v", err)
37 }
38 return configPath
39}
40
41func TestConfigFile_ProjectLevel(t *testing.T) {
42 resetViper()

Calls

no outgoing calls

Tested by

no test coverage detected