Unverified Commit 654022ae authored by Albert Viilik's avatar Albert Viilik Committed by GitHub

Make deprecation notice link to website downloads (#63829)

parent 6b8ab804
...@@ -795,7 +795,9 @@ abstract class FlutterCommand extends Command<void> { ...@@ -795,7 +795,9 @@ abstract class FlutterCommand extends Command<void> {
void _printDeprecationWarning() { void _printDeprecationWarning() {
if (deprecated) { if (deprecated) {
globals.printStatus('$warningMark The "$name" command is deprecated and ' globals.printStatus('$warningMark The "$name" command is deprecated and '
'will be removed in a future version of Flutter.'); 'will be removed in a future version of Flutter. '
'See https://flutter.dev/docs/development/tools/sdk/releases '
'for previous releases of Flutter.');
globals.printStatus(''); globals.printStatus('');
} }
} }
......
...@@ -43,7 +43,10 @@ void main() { ...@@ -43,7 +43,10 @@ void main() {
'--no-pub', '--no-pub',
]); ]);
expect(testLogger.statusText, equals( expect(testLogger.statusText, equals(
'[!] The "version" command is deprecated and will be removed in a future version of Flutter.\n\n' '[!] The "version" command is deprecated '
'and will be removed in a future version of Flutter. '
'See https://flutter.dev/docs/development/tools/sdk/releases '
'for previous releases of Flutter.\n\n'
'v10.0.0\r\nv20.0.0\r\n30.0.0-dev.0.0\r\n31.0.0-0.0.pre\n' 'v10.0.0\r\nv20.0.0\r\n30.0.0-dev.0.0\r\n31.0.0-0.0.pre\n'
)); ));
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment