INNER CODE UNIT · Go

formatSource

asdf-vm/asdf · internal/cli/cli.go:502

func formatSource(toolversion resolve.ToolVersions, found bool) string {
	if found {
		return filepath.Join(toolversion.Directory, toolversion.Source)
	}
	return "______"
}

func formatVersions(versions []string) string {
	switch len(versions) {
	case 0:
		return "______"
	case 1:
		return versions[0]
	default:
		return strings.Join(versions, " ")
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…