printTestCliTitle function

void printTestCliTitle({
  1. bool showDartVersion = true,
  2. bool showOSVersion = true,
  3. String? testPlatform,
})

Prints the Bones_UI Test CLI title.

Implementation

void printTestCliTitle(
    {bool showDartVersion = true,
    bool showOSVersion = true,
    String? testPlatform}) {
  var dartVersion = Platform.version;
  var os = Platform.operatingSystem;
  var osVer = Platform.operatingSystemVersion;

  var lines = [
    bonesUiTestCliTitle,
    if (showDartVersion) '» Dart: $dartVersion',
    if (showOSVersion) '» OS: $os/$osVer',
    if (testPlatform != null && testPlatform.isNotEmpty)
      '» Platform: $testPlatform',
  ];

  printBox(lines);
}