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

Function displayExtensionVersion

pkg/cmd/extension/command.go:723–728  ·  view source on GitHub ↗
(ext extensions.Extension, version string)

Source from the content-addressed store, hash-verified

721}
722
723func displayExtensionVersion(ext extensions.Extension, version string) string {
724 if !ext.IsBinary() && len(version) > 8 {
725 return version[:8]
726 }
727 return version
728}

Callers 2

upgradeExtensionsMethod · 0.85
NewCmdExtensionFunction · 0.85

Calls 1

IsBinaryMethod · 0.65

Tested by

no test coverage detected