MCPcopy Index your code
hub / github.com/devspace-sh/devspace / parseVersion

Method parseVersion

pkg/devspace/plugin/plugin.go:205–214  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

203}
204
205func (c *client) parseVersion(version string) (semver.Version, error) {
206 if len(version) == 0 {
207 return semver.Version{}, fmt.Errorf("version is empty")
208 }
209 if version[0] == 'v' {
210 version = version[1:]
211 }
212
213 return semver.Parse(version)
214}
215
216func (c *client) Remove(name string) error {
217 path, metadata, err := c.GetByName(name)

Callers 1

UpdateMethod · 0.95

Calls 2

ParseMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected