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