aws-appsync-vtl
Version:
Push to and pull from AWS AppSync velocity templates of your resolvers
19 lines (18 loc) • 930 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = __importDefault(require("commander"));
const synchronizer_1 = require("./synchronizer");
const sync = synchronizer_1.Synchronizer.create();
commander_1.default.program
.command('pull')
.option('-y', 'Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively')
.action((options) => sync.pull(options.y));
commander_1.default.program
.command('push')
.option('-y', 'Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively')
.action(() => sync.push());
commander_1.default.program.command('rm', 'Remove type or resolver', { executableFile: `${__dirname}/aav-rm` });
commander_1.default.parse(process.argv);