describeCommand function
A short readable name for a command line: the tool and its first arguments.
Implementation
String describeCommand(String executable, List<String> arguments) {
final name = executable.split('/').last;
final line = [name, ...arguments.take(4)].join(' ');
return line.length <= 90 ? line : '${line.substring(0, 89)}…';
}