dvTargetRefusal function

String dvTargetRefusal(
  1. String target
)

What dartvel build <target> says when target is a paid target and no package that provides it is installed.

Implementation

String dvTargetRefusal(String target) {
  final String? what = dvPaidTargets[target];
  return <String>[
    '$target${what == null ? '' : ' ($what)'} is a paid target: it is '
        'included in every Dartvel Cloud plan and is not part of the free '
        'install.',
    '',
    '  Build it on Dartvel Cloud:   dartvel build $target --cloud',
    '  Or build it on this machine: dartvel targets add pro',
    '    which adds the $dvTargetsProPackage package to this project. It is '
        'private, so it needs the access that comes with a Cloud plan.',
    '',
    '  Free targets: android, fireos, ios, web, web-server, macos, '
        'windows, linux, sony-elinux, tizen, webos, tvos.',
    '  Dartvel 0.11.5 and earlier still build $target under the MIT licence.',
  ].join('\n');
}