MCPcopy Create free account
hub / github.com/exercism/cli / newVersionStatus

Function newVersionStatus

cmd/troubleshoot.go:153–165  ·  view source on GitHub ↗
(c *cli.CLI)

Source from the content-addressed store, hash-verified

151}
152
153func newVersionStatus(c *cli.CLI) versionStatus {
154 vs := versionStatus{
155 Current: c.Version,
156 }
157 ok, err := c.IsUpToDate()
158 if err == nil {
159 vs.Latest = c.LatestRelease.Version()
160 } else {
161 vs.Error = fmt.Errorf("Error: %s", err)
162 }
163 vs.UpToDate = ok
164 return vs
165}
166
167func newSystemStatus() systemStatus {
168 ss := systemStatus{

Callers 1

checkMethod · 0.85

Calls 2

VersionMethod · 0.80
IsUpToDateMethod · 0.65

Tested by

no test coverage detected