Explicitly show "Currently not on an official channel." (#84992)

This commit is contained in:
Ahmed Ashour
2021-07-16 06:55:39 +02:00
committed by GitHub
parent cb4fba2081
commit 838ad83705
2 changed files with 6 additions and 1 deletions

View File

@@ -113,6 +113,11 @@ class ChannelCommand extends FlutterCommand {
}
}
}
if (currentChannel == 'unknown') {
globals.printStatus('');
globals.printStatus('Currently not on an official channel.');
}
}
Future<void> _switchChannel(String branchName) async {

View File

@@ -159,7 +159,7 @@ void main() {
.where((String line) => line?.isNotEmpty == true)
.skip(1); // remove `Flutter channels:` line
expect(rows, <String>['dev', 'beta', 'stable']);
expect(rows, <String>['dev', 'beta', 'stable', 'Currently not on an official channel.']);
}, overrides: <Type, Generator>{
ProcessManager: () => fakeProcessManager,
FileSystem: () => MemoryFileSystem.test(),