liveCommandMoved function
The message for name when it moved, or null when it didn't.
runner says where the replacement is typed from: storage and friends
run through live:run, while seed only runs inside metro live.
Implementation
String? liveCommandMoved(String name, {LiveRunner? runner}) {
final String? now = liveCommandsMoved[name];
if (now == null) return null;
final String head = now.split(' ').first;
final String where;
if (liveRunActions.containsKey(head)) {
where = runner?.runActionName(now) ?? 'metro live:run $now';
} else if (_isShellOnly(head)) {
where = runner == null ? '$now inside metro live' : now;
} else {
where = runner?.commandName(now) ?? 'metro live:$now';
}
return '"$name" is now $where';
}