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

Function validateProjectDir

apps/cli/internal/cli/project_registry.go:95–101  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

93}
94
95func validateProjectDir(path string) error {
96 configFile := filepath.Join(path, configFilename)
97 if _, err := os.Stat(configFile); os.IsNotExist(err) {
98 return fmt.Errorf("no %s found in %s — initialize a project first with 'taskmd init'", configFilename, path)
99 }
100 return nil
101}
102
103func resolveRegisterIDAndName(targetPath string) (string, string) {
104 id := projectRegisterID

Callers 1

runProjectRegisterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected