MCPcopy Index your code
hub / github.com/coder/coder / defaultUpgradeMessage

Function defaultUpgradeMessage

cli/root.go:1549–1557  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

1547}
1548
1549func defaultUpgradeMessage(version string) string {
1550 // Our installation script doesn't work on Windows, so instead we direct the user
1551 // to the GitHub release page to download the latest installer.
1552 version = strings.TrimPrefix(version, "v")
1553 if runtime.GOOS == "windows" {
1554 return fmt.Sprintf("download the server version from: https://github.com/coder/coder/releases/v%s", version)
1555 }
1556 return fmt.Sprintf("download the server version with: 'curl -L https://coder.com/install.sh | sh -s -- --version %s'", version)
1557}
1558
1559// serverVersionMessage returns a warning message if the server version
1560// is a release candidate or development build. Returns empty string

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected