sharedDevFlags top-level constant

List<ConstructFlag> const sharedDevFlags

Flags shared by the outer revali dev and the construct runner's dev.

Outer-only flags (recompile, skip-if-fresh, inspect, cert, key) are deliberately absent — the outer command declares those itself and they are never forwarded.

Implementation

const sharedDevFlags = <ConstructFlag>[
  _flavor,
  ConstructBoolFlag(
    name: 'release',
    help:
        'Whether to run in release mode. '
        'Disables hot reload, debugger, and logger',
  ),
  _profile,
  ConstructBoolFlag(
    name: 'debug',
    help:
        '(Default) Whether to run in debug mode. '
        'Enables hot reload, debugger, and logger',
  ),
  ConstructBoolFlag(
    name: 'generate-only',
    help: 'Only generate the constructs, does not run the server',
    hide: true,
  ),
  ConstructOption(
    name: 'dart-vm-service-port',
    help:
        'The port to use for the Dart VM service. '
        'Use 0 to automatically assign a port.',
    defaultsTo: '0',
  ),
  _dartDefine,
  _dartDefineFromFile,
];