showTemplateInfos method

void showTemplateInfos(
  1. Template template
)

Implementation

void showTemplateInfos(Template template) {
  var templateVariables = template.parseTemplateVariables();

  printToConsole('\nTEMPLATE VARIABLES:\n  ${templateVariables.join(', ')}');

  var manifest = template.getManifest();

  if (manifest != null) {
    printToConsole('\nMANIFEST:');

    printToConsole(
      YamlWriter()
          .write(manifest)
          .split(RegExp(r'[\r\n]'))
          .map((l) => '  $l')
          .join('\n'),
    );
  }
}