invocation property

  1. @override
String get invocation
override

A single-line template for how to invoke this command (e.g. "pub get package").

Implementation

@override
String get invocation {
  final invocation = super.invocation;

  final first = invocation.split(' [arguments]').first;

  return '$first [query] [arguments]';
}