Skip to content

Commit

Permalink
Allow --machine/--allow-embedding to be passed to devtools_tool serve (
Browse files Browse the repository at this point in the history
…#6670)

* Allow --machine to be passed to devtools_tool serve

* Add allow-embedding
  • Loading branch information
DanTup authored Nov 8, 2023
1 parent 123bc7c commit 7cdf89a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tool/lib/commands/serve.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import '../utils.dart';
const _useLocalFlutterFlag = 'use-local-flutter';
const _updatePerfettoFlag = 'update-perfetto';
const _buildAppFlag = 'build-app';
const _machineFlag = 'machine';
const _allowEmbeddingFlag = 'allow-embedding';

/// This command builds DevTools in release mode by running the
/// `devtools_tool build-release` command and then serves DevTools with a
Expand Down Expand Up @@ -53,6 +55,16 @@ class ServeCommand extends Command {
help:
'Whether to build the DevTools app in release mode before starting '
'the DevTools server.',
)
// Flags defined in the server in DDS.
..addFlag(
_machineFlag,
negatable: false,
help: 'Sets output format to JSON for consumption in tools.',
)
..addFlag(
_allowEmbeddingFlag,
help: 'Allow embedding DevTools inside an iframe.',
);
}

Expand Down

0 comments on commit 7cdf89a

Please sign in to comment.