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

Function formatNameForVSCSTarget

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

Source from the content-addressed store, hash-verified

191}
192
193func formatNameForVSCSTarget(name, vscsTarget string) string {
194 if vscsTarget == api.VSCSTargetDevelopment || vscsTarget == api.VSCSTargetLocal {
195 return fmt.Sprintf("%s 🚧", name)
196 }
197
198 if vscsTarget == api.VSCSTargetPPE {
199 return fmt.Sprintf("%s ✨", name)
200 }
201
202 return name
203}

Callers 2

ViewCodespaceMethod · 0.85
ListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected