Create a command-line tool /app/toposort that reads a dependency specification from stdin and outputs either…
Create a command-line tool /app/toposort that reads a dependency specification from stdin and outputs either…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One dependency per line: TASK depends on TASK (spaces around "depends on") - Task…
The task
**Input format (stdin):** - One dependency per line: `TASK depends on TASK` (spaces around "depends on") - Task names are non-empty strings of ASCII letters, digits, hyphens, and underscores only - Lines may have leading/trailing whitespace; blank lines are allowed and must be ignored - Lines starting with `#` are…
Part of ai-and/termgrade-environments.