( label: string, value: string, icon: string, valueColor: (s: string) => string )
| 176 | const maxLabelLength = 'Total embeddings generated:'.length; |
| 177 | |
| 178 | const formatLine = ( |
| 179 | label: string, |
| 180 | value: string, |
| 181 | icon: string, |
| 182 | valueColor: (s: string) => string |
| 183 | ) => { |
| 184 | const paddedLabel = label.padEnd(maxLabelLength); |
| 185 | return `${icon} ${paddedLabel} ${valueColor(value)}`; |
| 186 | }; |
| 187 | |
| 188 | const summary = [ |
| 189 | color.bold(color.cyan('Embedding Generation Summary:')), |
no outgoing calls
no test coverage detected