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

Function getShortDescription

packages/cli/src/internal/commandDescriptor.ts:971–986  ·  view source on GitHub ↗
(self: Instruction)

Source from the content-addressed store, hash-verified

969// =============================================================================
970
971const 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
988interface CommandInfo {
989 readonly command: Standard | GetUserInput

Callers 2

subcommandCompletionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected