task: async()

in src/commands/repair-package-data.ts [168:186]


              task: async (ctx) => {
                const { executionArn } = await SFN.send(new StartExecutionCommand({
                  stateMachineArn: stateMachine,
                  name,
                  input: JSON.stringify({
                    'bucket': bucketName,
                    'assembly': { key: status.assemblyKey },
                    'metadata': { key: status.metadataKey },
                    'package': { key: status.tarballKey },
                    'languages': missingLanguages.reduce((selection, lang) => ({ ...selection, [lang]: true }), {}),
                    '#comment': `Triggered by construct-hub-cli by ${userInfo().username} on ${hostname()}`,
                  }, null, 2),
                }));
                if (executionArn) {
                  ctx.executionArns.set(name, executionArn);
                  fixItemTask.title += ` => ${chalk.yellow(executionArn)}`;
                }
                return executionArn;
              },