#!/usr/bin/env node

var vlocity = require('./vlocitycli.js');

function oncomplete(result) {
    VlocityUtils.log(result);
}

function onerror(result) {
    VlocityUtils.log(result);
    process.exitCode = 1;
}

new vlocity().runCLI(null, oncomplete, onerror);
#!/usr/bin/env node

var vlocity = require('./vlocitycli.js');

function oncomplete(result) {
    if (VlocityUtils.quiet) {
        return;
    }
    console.log(result);
}

function onerror(result) {
    process.exitCode = 1;
    if (VlocityUtils.quiet) {
        return;
    }
    console.log(result);
}

new vlocity().runCLI(null, oncomplete, onerror);
Fix up quiet logging in command line result handling.
Fix up quiet logging in command line result handling.
