UNPKG

@elsikora/setup-wizard

Version:

Setup Wizard - CLI scaffolding utility

23 lines (21 loc) 845 B
#!/usr/bin/env node /** * Mapper for CLI interface service operations. * Provides utility functions for transforming data structures for CLI display. */ const CliInterfaceServiceMapper = { /** * Converts license configurations to select options for CLI interface. * Formats each license as an option with name and value for display in selection prompts. * @param properties - Record of license types to license configurations * @returns Array of select options formatted for CLI interface */ fromLicenseConfigsToSelectOptions(properties) { return Object.entries(properties).map(([license, config]) => ({ label: `${config.name} (${license})`, value: license, })); }, }; export { CliInterfaceServiceMapper }; //# sourceMappingURL=cli-interface-service.mapper.js.map