| 4 | const UPPERCASE_PARTS = new Set(['ascii']); |
| 5 | |
| 6 | const slugToComponentName = slug => { |
| 7 | if (!slug) return ''; |
| 8 | return slug |
| 9 | .split('-') |
| 10 | .map(part => { |
| 11 | if (UPPERCASE_PARTS.has(part.toLowerCase())) return part.toUpperCase(); |
| 12 | return part.charAt(0).toUpperCase() + part.slice(1); |
| 13 | }) |
| 14 | .join(''); |
| 15 | }; |
| 16 | |
| 17 | export const generateCliCommands = (language, style, category, subcategory, dependencies = '') => { |
| 18 | if (!category || !subcategory) return null; |
no outgoing calls
no test coverage detected