MCPcopy
hub / github.com/breejs/bree / getJobNames

Function getJobNames

src/job-utils.js:93–105  ·  view source on GitHub ↗
(jobs, excludeIndex)

Source from the content-addressed store, hash-verified

91 * @returns {string[]} job names
92 */
93const getJobNames = (jobs, excludeIndex) => {
94 const names = [];
95
96 for (const [i, job] of jobs.entries()) {
97 if (i === excludeIndex) continue;
98
99 const name = getName(job);
100
101 if (name) names.push(name);
102 }
103
104 return names;
105};
106
107/**
108 * Processes job name to generate a partial path for the job

Callers 2

initMethod · 0.85
addMethod · 0.85

Calls 1

getNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…