@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
25 lines • 850 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("../__tests__/test-helpers/environment");
const _1 = require(".");
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(",");
}
(0, _1.bot)(arg);
//# sourceMappingURL=cli.js.map