Write a command-line tool /app/toposort that reads a directed dependency graph from a file and outputs one…
Write a command-line tool /app/toposort that reads a directed dependency graph from a file and outputs one…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The tool reads a single file path as its only argument. Each line of the file is either: -…
The task
**Input format:** The tool reads a single file path as its only argument. Each line of the file is either: - Empty (skip it) - A comment line starting with `#` (skip it) - A dependency declaration: `task_name -> task_name` with arbitrary whitespace around `->` - Task names are non-empty strings of printable ASCII…
Part of ai-and/termgrade-environments.