Skip to content

Commit

Permalink
feat: identities/CommandList now uses nesting to represent each ele…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
amydevs committed Mar 22, 2024
1 parent 79022e2 commit 962fa32
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/identities/CommandList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class CommandList extends CommandPolykey {
);
} else {
// Convert to a human-readable list.
let count = 1;
for (const gestaltMessage of gestaltMessages) {
const gestalt = gestaltMessage.gestalt;
const nodeIds = Object.values(gestalt.nodes).map(
Expand All @@ -99,14 +98,14 @@ class CommandList extends CommandPolykey {
binUtils.outputFormatter({
type: 'dict',
data: {
gestalt: count,
actionsList: gestalt.actionsList.join(','),
identities,
nodeIds,
gestalt: {
actionsList: gestalt.actionsList.join(','),
identities,
nodeIds,
},
},
}),
);
count++;
}
}
} finally {
Expand Down

0 comments on commit 962fa32

Please sign in to comment.