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