mainUsageFooter static method
Implementation
static String mainUsageFooter() {
// String l(String s) => theme.prefixLine(s);
// String r(String s) => theme.prefixRun(s);
final usage = console.sectionLine('Usage');
final command1 =
'${app.executableName} ${'<project_directory>'.cGray.italic()}';
final command2 =
'${app.executableName} ${'run'.dim()} ${'<project_directory>'.cGray.italic()}';
final moreInfo = 'For more information, visit: '
'${linkLine('https://github.com/salah-rashad/assist', 'GitHub')}'
' | '
'${linkLine('https://pub.flutter-io.cn/packages/assist', 'Pub')}';
final sb = StringBuffer();
sb.write('\r$usage');
// sb.write('\x1B[3A\x1B[2K');
// sb.writeln(''.prefixLine());
sb.writeln(command1.prefixRun());
sb.writeln(command2.prefixRun());
sb.writeln(''.prefixLine());
sb.write(moreInfo.prefixLine());
return sb.toString();
}