INNER CODE UNIT · Go

main

career-ops-hq/career-ops · dashboard/main.go:345

func main() {
	defaultPath := getRepoRoot()
	if envPath := resolveEnvPath(os.Getenv("CAREER_OPS_ROOT")); envPath != "" {
		defaultPath = envPath
	} else if envPath := resolveEnvPath(os.Getenv("CAREER_OPS_DATA_DIR")); envPath != "" {
		defaultPath = envPath
	} else {
		markerFile := filepath.Join(getRepoRoot(), ".career-ops-data")
		if content, err := os.ReadFile(markerFile); err == nil {
			trimmed := strings.TrimSpace(string(content))
			if trimmed != "" {
				if filepath.IsAbs(trimmed) {
					defaultPath = filepath.Clean(trimmed)
				} else {
					defaultPath = filepath.Clean(filepath.Join(getRepoRoot(), trimmed))
				}
			}
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…