flutter/packages/flutter_tools/test
Greg Spencer e438632165
Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656)
This turns on text wrapping for usage messages and status messages. When on a terminal, wraps to the width of the terminal. When writing to a non-terminal, wrap lines at a default column width (currently defined to be 100 chars). If --no-wrap is specified, then no wrapping occurs. If --wrap-column is specified, wraps to that column (if --wrap is on).

Adds ANSI color to the doctor and analysis output on terminals. This is in this PR with the wrapping, since wrapping needs to know how to count visible characters in the presence of ANSI sequences. (This is just one more step towards re-implementing all of Curses for Flutter. :-)) Will not print ANSI sequences when sent to a non-terminal, or of --no-color is specified.

Fixes ANSI color and bold sequences so that they can be combined (bold, colored text), and a small bug in indentation calculation for wrapping.

Since wrapping is now turned on, also removed many redundant '\n's in the code.
2018-10-05 20:00:11 -07:00
..
android Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656) 2018-10-05 20:00:11 -07:00
base Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656) 2018-10-05 20:00:11 -07:00
commands Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656) 2018-10-05 20:00:11 -07:00
dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
data Roll engine to version d80c1de7b53af81a0b4385eb3f13de1ef77f0d2d 2018-09-27 15:17:03 -07:00
integration Change file paths to URIs to fix "Could not run configuration in engine" on Windows (#22507) 2018-10-02 18:31:55 +01:00
intellij Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
ios Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656) 2018-10-05 20:00:11 -07:00
runner apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
src Split Android license checks into their own subvalidator (#22446) 2018-10-05 08:45:16 -07:00
tester Revert "Eliminate snapshot, depfile opts from bundle cmd (#22495)" (#22519) 2018-10-01 10:49:39 -07:00
analytics_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
application_package_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
artifacts_test.dart Cleanup uses of entry points files (#22098) 2018-09-20 15:10:41 -07:00
asset_bundle_package_fonts_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
asset_bundle_package_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
asset_bundle_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
asset_bundle_variant_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
asset_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
base_utils_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
bug_report_test.dart Shim package:test to avoid matcher issues (#20602) 2018-08-14 20:33:58 -07:00
cache_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
channel_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
compile_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
config_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
crash_reporting_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
dart_dependencies_test.dart Fix quotes. 2018-09-27 15:17:03 -07:00
dependency_checker_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
devfs_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
device_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
emulator_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
flutter_manifest_test.dart Rename module --> application in flutter create command. (#22565) 2018-10-04 13:03:20 -07:00
forbidden_imports_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
hot_test.dart Do not continue a hot restart if _restartFromSources fails (#22645) 2018-10-05 13:48:41 -07:00
project_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
protocol_discovery_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
resident_runner_test.dart apply lint prefer_void_to_null in packages/flutter_tools (#22686) 2018-10-05 07:54:56 +02:00
stop_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
trace_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
utils_test.dart Turn on line wrapping in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656) 2018-10-05 20:00:11 -07:00
version_test.dart Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
vmservice_test.dart Shim package:test to avoid matcher issues (#20602) 2018-08-14 20:33:58 -07:00