function getOperationType()

in src/input.ts [54:68]


function getOperationType() {
  let operationType = getNonRequiredInputString('operation')
  if (!operationType) {
    return 'deploy'
  }
  operationType = operationType.toLowerCase()

  if (operationType !== 'validate' && operationType !== 'deploy') {
    throw new ArgumentError(
      `Invalid operation: ${operationType}. It should be either 'validate' or 'deploy'`
    )
  }

  return operationType
}