MCPcopy Create free account
hub / github.com/bitwarden/clients / getMessage

Method getMessage

apps/cli/src/commands/update.command.ts:58–80  ·  view source on GitHub ↗
(release: any, downloadUrl: string)

Source from the content-addressed store, hash-verified

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) {

Callers 15

getI18nFunction · 0.80
OverlayBackgroundClass · 0.80
AtRiskNotificationFunction · 0.80
OptionItemFunction · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected