Skip to content

Commit

Permalink
fix: deduplicate json output (#382)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristian Dominguez <[email protected]>
  • Loading branch information
mshanemc and cristiand391 authored Feb 13, 2023
1 parent 5adccc3 commit ca5a905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Commands extends Command {
// If Command classes have circular references, don't break the commands command.
return this.removeCycles(obj)
}))
return formatted
return _.uniqBy(formatted, 'id')
}

if (flags.tree) {
Expand Down

0 comments on commit ca5a905

Please sign in to comment.