Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
5097fd4f
Commit
5097fd4f
authored
Nov 02, 2016
by
Ian Hickson
Committed by
GitHub
Nov 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettier help in tool (#6637)
parent
ae49356a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
hot.dart
packages/flutter_tools/lib/src/hot.dart
+1
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+3
-2
run.dart
packages/flutter_tools/lib/src/run.dart
+9
-7
No files found.
packages/flutter_tools/lib/src/hot.dart
View file @
5097fd4f
...
...
@@ -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".'
);
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
5097fd4f
...
...
@@ -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
);
...
...
packages/flutter_tools/lib/src/run.dart
View file @
5097fd4f
...
...
@@ -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.'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment