Add --serve-observatory flag to run, attach, and test (#118402)

This flag will allow for Observatory to be served by the VM service once it is disabled by default in the Dart SDK.
This commit is contained in:
Ben Konyi
2023-01-25 12:46:08 -05:00
committed by GitHub
parent cd34fa6d4c
commit 6cd4fa45e2
16 changed files with 308 additions and 20 deletions

View File

@@ -458,6 +458,14 @@ abstract class FlutterCommand extends Command<void> {
);
}
void addServeObservatoryOptions({required bool verboseHelp}) {
argParser.addFlag('serve-observatory',
hide: !verboseHelp,
defaultsTo: true,
help: 'Serve the legacy Observatory developer tooling through the VM service.',
);
}
late final bool enableDds = () {
bool ddsEnabled = false;
if (argResults?.wasParsed('disable-dds') ?? false) {