#!/usr/bin/env node

/**
 * External dependencies
 */

/**
 * Internal dependencies
 */
"use strict";

var _command = _interopRequireDefault(require("../lib/cli/command"));

var _sql = require("../lib/validations/sql");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _command.default)({
  requiredArgs: 1
}).example('vip import validate-sql <file>', 'Run the import validation against file').argv(process.argv, async arg => {
  const filename = arg[0];

  if (!arg && !filename) {
    console.error('You must pass in a filename');
    process.exit(1);
  }

  (0, _sql.validate)(filename);
});