(args)
| 14 | const CATEGORIES = ['plugins', 'themes', 'agents', 'projects', 'resources']; |
| 15 | |
| 16 | function parseArgs(args) { |
| 17 | const outputFlagIndex = args.findIndex((arg) => arg === '--output'); |
| 18 | const outputPath = outputFlagIndex !== -1 && args[outputFlagIndex + 1] |
| 19 | ? args[outputFlagIndex + 1] |
| 20 | : null; |
| 21 | const pretty = args.includes('--pretty'); |
| 22 | return { outputPath, pretty }; |
| 23 | } |
| 24 | |
| 25 | function buildProductId(entry) { |
| 26 | if (entry._fileName) { |