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

Function formatNameForVSCSTarget

pkg/cmd/codespace/list.go:187–197  ·  view source on GitHub ↗
(name, vscsTarget string)

Source from the content-addressed store, hash-verified

185}
186
187func formatNameForVSCSTarget(name, vscsTarget string) string {
188 if vscsTarget == api.VSCSTargetDevelopment || vscsTarget == api.VSCSTargetLocal {
189 return fmt.Sprintf("%s 🚧", name)
190 }
191
192 if vscsTarget == api.VSCSTargetPPE {
193 return fmt.Sprintf("%s ✨", name)
194 }
195
196 return name
197}

Callers 2

ViewCodespaceMethod · 0.85
ListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected