MCPcopy Index your code
hub / github.com/Effect-TS/effect / getShortDescription

Function getShortDescription

packages/cli/src/internal/args.ts:1014–1030  ·  view source on GitHub ↗
(self: Instruction)

Source from the content-addressed store, hash-verified

1012// =============================================================================
1013
1014const 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 */
1033export const getFishCompletions = (self: Instruction): Array<string> => {

Callers 2

getFishCompletionsFunction · 0.70
getZshCompletionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected