Skip to content

Commit

Permalink
fix(roc-plugin-repo): Added info to graph command for no projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Sep 8, 2017
1 parent 488f068 commit 81e1bf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/roc-plugin-repo/src/commands/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default projects => async ({
({ name }) => !selectedProjects || selectedProjects.includes(name),
);

if (selected.length === 0) {
return log.warn('No projects were found');
}

const status = await generateStatus(projects, true);
const projectsWithVersions = getNextVersions(status, projects);

Expand Down Expand Up @@ -88,4 +92,6 @@ export default projects => async ({
.join('\n')}`,
);
}

return Promise.resolve();
};

0 comments on commit 81e1bf7

Please sign in to comment.