MCPcopy Index your code
hub / github.com/koding/kite / getVersion

Function getVersion

kitectl/command/install.go:179–186  ·  view source on GitHub ↗
(manifest map[string]interface{})

Source from the content-addressed store, hash-verified

177}
178
179func getVersion(manifest map[string]interface{}) (string, error) {
180 version, ok := manifest["version"].(string)
181 if !ok {
182 return "", errors.New("invalid version string")
183 }
184
185 return version, nil
186}
187
188// extractTar reads from the io.Reader and writes the files into the directory.
189func extractTar(r io.Reader, dir string) error {

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected