@kitmi/jacaranda
Version:
JavaScript application framework
29 lines (24 loc) • 591 B
JavaScript
import ServiceInstaller from './ServiceInstaller';
import Runnable from './Runnable';
/**
* Installer for cli app.
* @class
* @mixes {Runnable}
* @extends {ServiceInstaller}
*/
class Installer extends Runnable(ServiceInstaller) {
constructor(options) {
super('installer', options);
}
}
function install(options) {
const installer = new Installer(options);
installer
.start_()
.then((app) => app.stop_())
.catch((err) => {
/* eslint-disable no-undef */
console.error(err);
});
}
export default install;