UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

15 lines (14 loc) 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBrowserChoices = exports.getChoices = void 0; const SecretsStorageSingleton_1 = require("../cache/secrets/SecretsStorageSingleton"); const openUtils_1 = require("../utils/openUtils"); const getChoices = async () => { return SecretsStorageSingleton_1.SecretsStorageSingleton.SINGLETON.getAllSecrets().map((secret) => secret.id.toString(10)); }; exports.getChoices = getChoices; const getBrowserChoices = async () => { const list = await (0, openUtils_1.getSupportedBrowsers)(); return list.map(({ name }) => name); }; exports.getBrowserChoices = getBrowserChoices;