ProjectIdOption constructor

const ProjectIdOption({
  1. bool asFirstArg = false,
  2. bool excludeSettings = 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,
  final bool excludeSettings = false,
}) : this._(
       asFirstArg: asFirstArg,
       excludeSettings: excludeSettings,
       mandatory: true,
       helpText:
           '${asFirstArg ? _helpTextFirstArg : _helpText}'
           '\nCan be omitted for existing projects that are linked'
           ' (see the "project link" command)'
           '${excludeSettings ? '.' : ' or if a global project context is set'
                     ' (see the "context set" command).'}',
     );