format function

Future<void> format(
  1. IShell shell
)

Formats all Dart source files in the current directory using the Dart CLI

since 0.0.1

Implementation

Future<void> format(IShell shell) async {
  await _whenDartProject('Format', shell, () async {
    _log.info('Formatting Source Files...');
    await shell.run('dart format --fix .');
  });
}