New creates a CLI, setting it to a particular version.
(version string)
| 68 | |
| 69 | // New creates a CLI, setting it to a particular version. |
| 70 | func New(version string) *CLI { |
| 71 | return &CLI{ |
| 72 | Version: version, |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | // IsUpToDate compares the current version to that of the latest release. |
| 77 | func (c *CLI) IsUpToDate() (bool, error) { |
no outgoing calls
no test coverage detected