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

Function normalizeExtensionSelector

pkg/cmd/extension/command.go:716–721  ·  view source on GitHub ↗
(n string)

Source from the content-addressed store, hash-verified

714}
715
716func normalizeExtensionSelector(n string) string {
717 if idx := strings.IndexRune(n, '/'); idx >= 0 {
718 n = n[idx+1:]
719 }
720 return strings.TrimPrefix(n, "gh-")
721}
722
723func displayExtensionVersion(ext extensions.Extension, version string) string {
724 if !ext.IsBinary() && len(version) > 8 {

Callers 1

NewCmdExtensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected