export function getQodanaPullArgs()

in common/qodana.ts [152:173]


export function getQodanaPullArgs(args: string[]): string[] {
  const pullArgs = ['pull']
  const linter = extractArg('-l', '--linter', args)
  if (linter) {
    pullArgs.push('-l', linter)
  }

  const image = extractArg('--image', '--image', args)
  if (image) {
    pullArgs.push('--image', image)
  }

  const project = extractArg('-i', '--project-dir', args)
  if (project) {
    pullArgs.push('-i', project)
  }
  const config = extractArg('--config', '--config', args)
  if (config) {
    pullArgs.push('--config', config)
  }
  return pullArgs
}