@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
24 lines • 777 B
JavaScript
;
import "../__tests__/test-helpers/environment";
import { bot } from ".";
const { BOT_FILTER_CURRENCIES, BOT_FILTER_FAMILIES, BOT_DISABLED_CURRENCIES, BOT_DISABLED_FAMILIES, BOT_FILTER_FEATURES, } = process.env;
const arg = {};
arg.filter = {};
arg.disabled = {};
if (BOT_FILTER_CURRENCIES) {
arg.filter.currencies = BOT_FILTER_CURRENCIES.split(",");
}
if (BOT_FILTER_FAMILIES) {
arg.filter.families = BOT_FILTER_FAMILIES.split(",");
}
if (BOT_DISABLED_CURRENCIES) {
arg.disabled.currencies = BOT_DISABLED_CURRENCIES.split(",");
}
if (BOT_DISABLED_FAMILIES) {
arg.disabled.families = BOT_DISABLED_FAMILIES.split(",");
}
if (BOT_FILTER_FEATURES) {
arg.filter.features = BOT_FILTER_FEATURES.split(",");
}
bot(arg);
//# sourceMappingURL=cli.js.map