Create a command-line tool /app/resolve that resolves a semantic version range against a list of available…
Create a command-line tool /app/resolve that resolves a semantic version range against a list of available…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Read from stdin: one or more lines. First line is a semver range expression. Remaining…
The task
**Input contract:** - Read from stdin: one or more lines. First line is a semver range expression. Remaining lines (if any) are available versions, one per line. - The tool must write the best matching version to stdout (just the version string, with a trailing newline) and exit 0 if exactly one version matches. - If…
Part of ai-and/termgrade-environments.