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

Method getNotes

apps/cli/src/commands/get.command.ts:315–328  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

313 }
314
315 private async getNotes(id: string) {
316 const cipherResponse = await this.getCipher(id, (c) => !Utils.isNullOrWhitespace(c.notes));
317 if (!cipherResponse.success) {
318 return cipherResponse;
319 }
320
321 const cipher = cipherResponse.data as CipherResponse;
322 if (Utils.isNullOrWhitespace(cipher.notes)) {
323 return Response.error("No notes available for this item.");
324 }
325
326 const res = new StringResponse(cipher.notes);
327 return Response.success(res);
328 }
329
330 private async getExposed(id: string) {
331 const passwordResponse = await this.getPassword(id);

Callers 4

runMethod · 0.95
buildCipherIndexFunction · 0.80
searchCiphersBasicMethod · 0.80

Calls 4

getCipherMethod · 0.95
isNullOrWhitespaceMethod · 0.80
successMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected