GitLabCommand constructor

GitLabCommand()

Implementation

GitLabCommand() {
  argParser
    ..addOption(
      'group-id',
      abbr: 'g',
      help: 'GitLab group ID to fetch projects from.',
      mandatory: true,
    )
    ..addOption(
      'token',
      abbr: 't',
      help: 'GitLab private token.',
      mandatory: true,
    )
    ..addOption(
      'api-url',
      abbr: 'u',
      defaultsTo: 'https://gitlab.com/api/v4',
      help: 'Base URL of the GitLab API.',
    )
    ..addOption(
      'retries',
      abbr: 'r',
      defaultsTo: '3',
      help: 'Number of retries for failed requests.',
    )
    ..addOption(
      'timeout',
      defaultsTo: '1000',
      help: 'Timeout duration in milliseconds.',
    );
}