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

Function resolveUnregisterMatch

apps/cli/internal/cli/project_registry.go:159–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func resolveUnregisterMatch() (string, string, error) {
160 if projectUnregisterID != "" {
161 return "id", projectUnregisterID, nil
162 }
163 cwd, err := os.Getwd()
164 if err != nil {
165 return "", "", fmt.Errorf("cannot determine current directory: %w", err)
166 }
167 abs, err := filepath.Abs(cwd)
168 if err != nil {
169 return "", "", fmt.Errorf("cannot resolve path: %w", err)
170 }
171 resolved, err := filepath.EvalSymlinks(abs)
172 if err != nil {
173 return "", "", fmt.Errorf("cannot resolve symlinks: %w", err)
174 }
175 return "path", resolved, nil
176}
177
178// readGlobalConfigNode reads the YAML document from the given path.
179// Returns an empty document if the file does not exist.

Callers 1

runProjectUnregisterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected