templateSummary function
void
templateSummary({})
Implementation
void templateSummary({
required Logger logger,
required Directory outputDir,
required String message,
}) {
final relativePath = path.relative(
outputDir.path,
from: Directory.current.path,
);
final projectPath = relativePath;
final projectPathLink = link(
uri: Uri.parse(projectPath),
message: projectPath,
);
final readmePath = path.join(relativePath, 'README.md');
final readmePathLink = link(uri: Uri.parse(readmePath), message: readmePath);
final details =
'''
• To get started refer to $readmePathLink
• Your code is in $projectPathLink
''';
logger
..info('\n')
..created(message)
..info(details)
..info(lightGray.wrap(vyuhInfoText));
}