invocation property

  1. @override
String get invocation

Implementation

@override
String get invocation {
  final parents = [name];
  for (Command? command = parent; command != null; command = command.parent) {
    parents.add(command.name);
  }
  final invocation = parents.reversed.join(' ');
  return '$invocation <${coal.Shell.values.map((e) => e.name).join('|')}>';
}