UNPKG

@onereach/orest-input-cli

Version:

The tool for creating, serving, and publishing OREST Inputs

21 lines (16 loc) 391 B
const { listProfiles, addProfile, removeProfile } = require('./profileService'); async function main(options) { if (options.add) { return addProfile(options.add); } if (options.remove) { return removeProfile(options.remove); } return listProfiles(); } module.exports = (...args) => { main(...args).catch(err => { console.error(err); process.exit(1); }); };