UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

10 lines (9 loc) 432 B
import { SecretsStorageSingleton } from "../cache/secrets/SecretsStorageSingleton.js"; import { getSupportedBrowsers } from "../utils/openUtils.js"; export const getChoices = async () => { return SecretsStorageSingleton.SINGLETON.getAllSecrets().map((secret) => secret.id.toString(10)); }; export const getBrowserChoices = async () => { const list = await getSupportedBrowsers(); return list.map(({ name }) => name); };