Skip to content

Commit

Permalink
Merge pull request #742 from mmehtonen-24i/fix/help-task
Browse files Browse the repository at this point in the history
fix: taskRnvHelp task
  • Loading branch information
pavjacko authored Nov 20, 2021
2 parents d7f28e2 + 866ed5f commit c2ccfd5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/rnv/src/engine-core/tasks/task.rnv.help.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ export const taskRnvHelp = (c) => {
});

// TASKS
let cmdsString = '';
const tasksObj = {};
const commands = [];
const engines = getRegisteredEngines(c);

engines.forEach((engine) => {
const tasks = engine.getTasks();
tasks.forEach((t) => {
tasksObj[t.task] = true;
Object.values(engine.tasks).forEach(({ task }) => {
commands.push(task);
});
});
cmdsString = Object.keys(tasksObj).join(', ');
const cmdsString = commands.join(', ');


logToSummary(`
Expand Down

0 comments on commit c2ccfd5

Please sign in to comment.