MCPcopy Create free account
hub / github.com/Effect-TS/effect / getShortDescription

Function getShortDescription

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

Source from the content-addressed store, hash-verified

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

Callers 2

getFishCompletionsFunction · 0.70
getZshCompletionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected