MCPcopy Create free account
hub / github.com/cli/cli / Label

Method Label

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

Source from the content-addressed store, hash-verified

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