(self: Instruction)
| 432 | } |
| 433 | |
| 434 | const getNamesInternal = (self: Instruction): Array<string> => { |
| 435 | switch (self._tag) { |
| 436 | case "Standard": |
| 437 | case "GetUserInput": { |
| 438 | return Arr.of(self.name) |
| 439 | } |
| 440 | case "Map": { |
| 441 | return getNamesInternal(self.command) |
| 442 | } |
| 443 | case "Subcommands": { |
| 444 | return getNamesInternal(self.parent) |
| 445 | } |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | const getSubcommandsInternal = ( |
| 450 | self: Instruction |
no test coverage detected
searching dependent graphs…