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
77310c15
Unverified
Commit
77310c15
authored
Jul 08, 2020
by
Jonah Williams
Committed by
GitHub
Jul 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] deprecate flutter version (#60998)
parent
843231bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
version.dart
packages/flutter_tools/lib/src/commands/version.dart
+3
-0
version_test.dart
...tter_tools/test/commands.shard/hermetic/version_test.dart
+5
-2
No files found.
packages/flutter_tools/lib/src/commands/version.dart
View file @
77310c15
...
...
@@ -29,6 +29,9 @@ class VersionCommand extends FlutterCommand {
);
}
@override
bool
get
deprecated
=>
true
;
@override
final
String
name
=
'version'
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/version_test.dart
View file @
77310c15
...
...
@@ -42,7 +42,10 @@ void main() {
'version'
,
'--no-pub'
,
]);
expect
(
testLogger
.
statusText
,
equals
(
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
));
expect
(
testLogger
.
statusText
,
equals
(
'[!] The "version" command is deprecated and will be removed in a future version of Flutter.
\n\n
'
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
));
},
overrides:
<
Type
,
Generator
>{
ProcessManager:
()
=>
MockProcessManager
(),
Stdio:
()
=>
mockStdio
,
...
...
@@ -204,7 +207,7 @@ void main() {
await
createTestCommandRunner
(
command
).
run
(<
String
>[
'version'
,
]);
expect
(
testLogger
.
statusText
,
equal
s
(
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
));
expect
(
testLogger
.
statusText
,
contain
s
(
'v10.0.0
\r\n
v20.0.0
\r\n
30.0.0-dev.0.0
\r\n
31.0.0-0.0.pre
\n
'
));
},
overrides:
<
Type
,
Generator
>{
ProcessManager:
()
=>
MockProcessManager
(),
Stdio:
()
=>
mockStdio
,
...
...
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