MCPcopy Index your code
hub / github.com/cli/cli / Label

Method Label

pkg/cmd/codespace/ports.go:137–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137func (pi *portInfo) Label() string {
138 if pi.devContainer != nil {
139 portStr := strconv.Itoa(int(pi.Port.PortNumber))
140 if attributes, ok := pi.devContainer.PortAttributes[portStr]; ok {
141 return attributes.Label
142 }
143 }
144 return ""
145}
146
147var portFields = []string{
148 "sourcePort",

Callers 9

ExportDataMethod · 0.95
labelListFunction · 0.45
printDiscussionsFunction · 0.45
listIssueLabelsFunction · 0.45
printLabelsFunction · 0.45
issueLabelListFunction · 0.45
issueLabelListFunction · 0.45
prLabelListFunction · 0.45
ListPortsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected