printFullUsage method

void printFullUsage(
  1. AFCommandContext ctx
)

Implementation

void printFullUsage(AFCommandContext ctx) {
  final result = StringBuffer('''
Usage: $usage

Available commands:
''');

  for(final command in ctx.definitions.commands.all) {
    result.writeln("  ${command.name} - ${command.description}");
  }

  result.writeln("\nNote: to create a new afib project, use the afib_bootstrap command");
  print(result.toString());
}