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

Function ResolveScanDir

apps/cli/internal/cli/root.go:260–265  ·  view source on GitHub ↗

ResolveScanDir returns the scan directory from positional arg or --task-dir flag. Positional arg takes precedence for backward compatibility.

(args []string)

Source from the content-addressed store, hash-verified

258// ResolveScanDir returns the scan directory from positional arg or --task-dir flag.
259// Positional arg takes precedence for backward compatibility.
260func ResolveScanDir(args []string) string {
261 if len(args) > 0 {
262 return args[0]
263 }
264 return GetGlobalFlags().TaskDir
265}
266
267// resolveProjectDir looks up a project in the global registry and returns its task directory.
268// It also reloads viper config from the project's .taskmd.yaml.

Callers 15

runNextFunction · 0.85
runSetFunction · 0.85
runArchiveFunction · 0.85
runTagsFunction · 0.85
runStatusListFunction · 0.85
runStatusSingleFunction · 0.85
runTracksFunction · 0.85
runBoardFunction · 0.85

Calls 1

GetGlobalFlagsFunction · 0.85