(self: Instruction)
| 968 | // ============================================================================= |
| 969 | |
| 970 | const getShortDescription = (self: Instruction): string => { |
| 971 | switch (self._tag) { |
| 972 | case "Standard": { |
| 973 | return InternalSpan.getText(InternalHelpDoc.getSpan(self.description)) |
| 974 | } |
| 975 | case "GetUserInput": { |
| 976 | return InternalSpan.getText(InternalHelpDoc.getSpan(self.description)) |
| 977 | } |
| 978 | case "Map": { |
| 979 | return getShortDescription(self.command) |
| 980 | } |
| 981 | case "Subcommands": { |
| 982 | return "" |
| 983 | } |
| 984 | } |
| 985 | } |
| 986 | |
| 987 | interface CommandInfo { |
| 988 | readonly command: Standard | GetUserInput |
no outgoing calls
no test coverage detected