(c *cli.CLI)
| 151 | } |
| 152 | |
| 153 | func 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 | |
| 167 | func newSystemStatus() systemStatus { |
| 168 | ss := systemStatus{ |
no test coverage detected