(release: any, downloadUrl: string)
| 56 | } |
| 57 | |
| 58 | private getMessage(release: any, downloadUrl: string) { |
| 59 | let message = ""; |
| 60 | |
| 61 | if (release.body != null && release.body !== "") { |
| 62 | message = release.body + "\n\n"; |
| 63 | } |
| 64 | |
| 65 | message += "You can download this update at " + downloadUrl; |
| 66 | |
| 67 | if (this.inPkg) { |
| 68 | message += |
| 69 | "\n\nIf you installed this CLI through a package manager " + |
| 70 | "you should probably update using its update command instead."; |
| 71 | } else { |
| 72 | message += |
| 73 | "\n\nIf you installed this CLI through NPM " + |
| 74 | "you should update using `" + |
| 75 | UPDATE_COMMAND + |
| 76 | "`"; |
| 77 | } |
| 78 | |
| 79 | return message; |
| 80 | } |
| 81 | |
| 82 | private getDownloadUrl(assets: any) { |
| 83 | if (assets == null) { |
no outgoing calls
no test coverage detected