now-sync
Version:
A tool to help developers sync their JavaScript resources with ServiceNow.
22 lines (16 loc) • 504 B
JavaScript
const ora = require('ora');
const CommandParser = require('../command-parser');
const { pull } = require('../../util/sync');
const { logInfo } = require('../../util/logging');
module.exports = class Pull extends CommandParser {
constructor(args) {
super(args);
this.requiresConfigFile = true;
}
async action() {
const spinner = ora('Pulling file content from ServiceNow...').start();
await pull();
spinner.stop();
logInfo('All local ServiceNow files updated.');
}
};