MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / formatVersion

Function formatVersion

packages/shared/src/versionUtils.ts:21–23  ·  view source on GitHub ↗
(version: Version)

Source from the content-addressed store, hash-verified

19};
20
21export const formatVersion = (version: Version): string => {
22 return `v${version.major}.${version.minor}.${version.patch}`;
23};
24
25/**
26 * Returns < 0 if `a < b`, 0 if equal, > 0 if `a > b`.

Callers 2

getUpgradeAvailabilityFunction · 0.85
tryGetLatestSourcebotTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected