Skip to content

Commit d80996e

Browse files
authored
Fix the directory path shown by the old CLI. (#1169)
If you run bin/format.dart, it prints: Formatting directory Closure: (String) => void from Function 'directory':.: Which is obviously not right. :) This fixes that. Almost no one with notice this because `dart format` goes through the new CLI and doesn't use this entrypoint. But if you global activate the dart_style package or use `dart pub run` to get to the old entrypoint you might see it.
1 parent 41d2411 commit d80996e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/cli/show.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ enum Show {
7171
/// Describes the directory whose contents are about to be processed.
7272
void directory(String path) {
7373
if (this == Show.legacy || this == Show.overwrite) {
74-
print('Formatting directory $directory:');
74+
print('Formatting directory $path:');
7575
}
7676
}
7777

0 commit comments

Comments
 (0)