Prettier help in tool (#6637)
This commit is contained in:
@@ -549,7 +549,7 @@ class HotRunner extends ResidentRunner {
|
||||
|
||||
@override
|
||||
void printHelp({ @required bool details }) {
|
||||
printStatus('To hot reload your app on the fly, press "r" or F5. To restart the app entirely, press "R".', emphasis: true);
|
||||
printStatus('🔥 To hot reload your app on the fly, press "r" or F5. To restart the app entirely, press "R".', emphasis: true);
|
||||
printStatus('The Observatory debugger and profiler is available at: http://127.0.0.1:$_observatoryPort/');
|
||||
if (details) {
|
||||
printStatus('To dump the widget hierarchy of the app (debugDumpApp), press "w".');
|
||||
|
||||
@@ -176,9 +176,10 @@ abstract class ResidentRunner {
|
||||
|
||||
void setupTerminal() {
|
||||
if (usesTerminalUI) {
|
||||
if (!logger.quiet)
|
||||
if (!logger.quiet) {
|
||||
printStatus('');
|
||||
printHelp(details: false);
|
||||
|
||||
}
|
||||
terminal.singleCharMode = true;
|
||||
terminal.onCharInput.listen((String code) {
|
||||
processTerminalInput(code);
|
||||
|
||||
@@ -262,20 +262,22 @@ class RunAndStayResident extends ResidentRunner {
|
||||
|
||||
@override
|
||||
void printHelp({ @required bool details }) {
|
||||
final bool showRestartText = !prebuiltMode && device.supportsRestart &&
|
||||
supportsServiceProtocol;
|
||||
if (showRestartText)
|
||||
bool haveDetails = false;
|
||||
if (!prebuiltMode && device.supportsRestart && supportsServiceProtocol)
|
||||
printStatus('To restart the app, press "r" or F5.');
|
||||
if (_result.hasObservatory)
|
||||
printStatus('The Observatory debugger and profiler is available at: http://127.0.0.1:${_result.observatoryPort}/');
|
||||
if (details) {
|
||||
if (supportsServiceProtocol) {
|
||||
if (supportsServiceProtocol) {
|
||||
haveDetails = true;
|
||||
if (details) {
|
||||
printStatus('To dump the widget hierarchy of the app (debugDumpApp), press "w".');
|
||||
printStatus('To dump the rendering tree of the app (debugDumpRenderTree), press "r".');
|
||||
}
|
||||
printStatus('To repeat this help message, press "h" or F1. To quit, press "q", F10, or Ctrl-C.');
|
||||
} else {
|
||||
}
|
||||
if (haveDetails && !details) {
|
||||
printStatus('For a more detailed help message, press "h" or F1. To quit, press "q", F10, or Ctrl-C.');
|
||||
} else {
|
||||
printStatus('To repeat this help message, press "h" or F1. To quit, press "q", F10, or Ctrl-C.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user