getBundlePath returns the bundle path of a given kite. Example: "adsf-1.2.3" -> "~/.kd/kites/asdf-1.2.3.kite"
(fullKiteName string)
| 72 | // getBundlePath returns the bundle path of a given kite. |
| 73 | // Example: "adsf-1.2.3" -> "~/.kd/kites/asdf-1.2.3.kite" |
| 74 | func getBundlePath(fullKiteName string) (string, error) { |
| 75 | kiteHome, err := kitekey.KiteHome() |
| 76 | if err != nil { |
| 77 | return "", err |
| 78 | } |
| 79 | return filepath.Join(kiteHome, "kites", fullKiteName), nil |
| 80 | } |
| 81 | |
| 82 | // isInstalled returns true if the kite is installed. |
| 83 | func isInstalled(fullKiteName string) (bool, error) { |
no outgoing calls
no test coverage detected