Write a command-line tool at /app/topsort that reads a dependency specification from STDIN and performs a…
Write a command-line tool at /app/topsort that reads a dependency specification from STDIN and performs a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (STDIN): - One dependency per line, format: TASK: DEP1, DEP2, ..., DEPN - A task with no…
The task
**Input format (STDIN):** - One dependency per line, format: `TASK: DEP1, DEP2, ..., DEPN` - A task with no dependencies is written as `TASK:` (trailing colon, nothing after) - TASK and DEP names are non-empty strings of ASCII alphanumerics, hyphens, and underscores only - Input may contain trailing whitespace on…
Part of ai-and/termgrade-environments.