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

Function New

cli/cli.go:70–74  ·  view source on GitHub ↗

New creates a CLI, setting it to a particular version.

(version string)

Source from the content-addressed store, hash-verified

68
69// New creates a CLI, setting it to a particular version.
70func 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.
77func (c *CLI) IsUpToDate() (bool, error) {

Callers 3

troubleshoot.goFile · 0.92
upgrade.goFile · 0.92
version.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected