dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
25 stars 34 forks source link

Built in commands and installed commands under same group will overwrite one another #197

Closed tomdye closed 6 years ago

tomdye commented 6 years ago

Bug

If there is a built in command with a group named create and an installed command with group create they will overwrite each other rather than merging when the command list is created.

This is because a spread operator is used to merge commands at the top level within the cli here. commands.commandsMap = new Map([...installedCommands.commandsMap, ...builtInCommands.commandsMap]);