You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/bin/hydrooj.js

18 lines
325 B
JavaScript

4 years ago
#!/usr/bin/env node
const hydro = require('../dist/loader');
try {
require.resolve('@hydrooj/ui-default');
4 years ago
} catch (e) {
console.error('Please also install @hydrooj/ui-default');
process.exit(1);
}
hydro.addon('@hydrooj/ui-default');
4 years ago
hydro.load().catch((e) => {
console.error(e);
process.exit(1);
});