Skip to content

Commit

Permalink
Add allow-embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Nov 8, 2023
1 parent 216e78a commit eb66845
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 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 @@ -54,10 +56,15 @@ class ServeCommand extends Command {
'Whether to build the DevTools app in release mode before starting '
'the DevTools server.',
)
// Flags defined in the server in DDS.
..addFlag(
'machine',
_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 eb66845

Please sign in to comment.