PromucFlow_constructor/deploy/docker/utils/bin/version.js

23 lines
440 B
JavaScript
Raw Normal View History

const utils = require('./utils');
async function exec() {
let version = null;
try {
version = await utils.getCurrentAppsmithVersion();
} catch (err) {
console.error("Error fetching current Appsmith version", err);
process.exit(1);
}
if (version) {
console.log(version);
}
else {
console.error("Error: could not find the current Appsmith version")
process.exit(1);
}
}
module.exports = {
exec,
};