(self: Instruction)
| 1012 | // ============================================================================= |
| 1013 | |
| 1014 | const getShortDescription = (self: Instruction): string => { |
| 1015 | switch (self._tag) { |
| 1016 | case "Empty": |
| 1017 | case "Both": { |
| 1018 | return "" |
| 1019 | } |
| 1020 | case "Single": { |
| 1021 | return InternalSpan.getText(InternalHelpDoc.getSpan(self.description)) |
| 1022 | } |
| 1023 | case "Map": |
| 1024 | case "Variadic": |
| 1025 | case "WithDefault": |
| 1026 | case "WithFallbackConfig": { |
| 1027 | return getShortDescription(self.args as Instruction) |
| 1028 | } |
| 1029 | } |
| 1030 | } |
| 1031 | |
| 1032 | /** @internal */ |
| 1033 | export const getFishCompletions = (self: Instruction): Array<string> => { |
no outgoing calls
no test coverage detected