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

Function getShortDescription

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

Source from the content-addressed store, hash-verified

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

Callers 2

subcommandCompletionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…