ProjectIdOption constructor

const ProjectIdOption({
  1. bool asFirstArg = false,
})

Project ID option that can be passed as command line argument (and if asFirstArg is true, also as the first positional argument), env variable, and scloud config file.

Implementation

const ProjectIdOption({
  final bool asFirstArg = false,
}) : super(
        argName: _projectIdArgName,
        argAbbrev: _projectIdArgAbbrev,
        argPos: asFirstArg ? 0 : null,
        envName: 'SERVERPOD_CLOUD_PROJECT_ID',
        configKey: '$scloudConfigDomainPrefix:/project/projectId',
        mandatory: true,
        helpText: '${asFirstArg ? _helpTextFirstArg : _helpText}'
            '\nCan be omitted for existing projects that are linked. '
            'See `scloud project link --help`.',
      );