(args: {
assignedTask: CmdRunTask;
percentage: number;
})
| 113 | } |
| 114 | |
| 115 | function createWorkerStatusMessage(args: { |
| 116 | assignedTask: CmdRunTask; |
| 117 | percentage: number; |
| 118 | }) { |
| 119 | const displayPath = args.assignedTask.bucketPathPattern.replace( |
| 120 | "[locale]", |
| 121 | args.assignedTask.targetLocale, |
| 122 | ); |
| 123 | return `[${chalk.hex(colors.yellow)(`${args.percentage}%`)}] Processing: ${chalk.dim(displayPath)} (${chalk.hex( |
| 124 | colors.yellow, |
| 125 | )( |
| 126 | args.assignedTask.sourceLocale, |
| 127 | )} -> ${chalk.hex(colors.yellow)(args.assignedTask.targetLocale)})`; |
| 128 | } |
| 129 | |
| 130 | function createExecutionProgressMessage(ctx: CmdRunContext) { |
| 131 | const succeededTasksCount = countTasks( |
no outgoing calls
no test coverage detected
searching dependent graphs…