(path string)
| 93 | } |
| 94 | |
| 95 | func 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 | |
| 103 | func resolveRegisterIDAndName(targetPath string) (string, string) { |
| 104 | id := projectRegisterID |
no outgoing calls
no test coverage detected