executables constant
Executables
Current app executables
A package may expose one or more of its scripts as executables that can be run directly from the command line. To make a script publicly available, list it under the executables field. Entries are listed as key/value pairs:
<name-of-executable>: <Dart-script-from-bin>
For example, the following pubspec entry lists two scripts:
executables:
slidy: main
fvm:
Once the package is activated using pub global activate,
typing slidy
executes bin/main.dart
.
Typing fvm
executes bin/fvm.dart
.
If you don’t specify the value, it is inferred from the key.
For more information, see pub global.
Implementation
static const Map<String, Object> executables = <String, Object>{
'dpk': r'',
};