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

Method list

apps/cli/src/tools/import.command.ts:210–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 }
209
210 private async list() {
211 const options = this.importService
212 .getImportOptions()
213 .sort((a, b) => {
214 return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
215 })
216 .map((option) => option.id)
217 .join("\n");
218 const res = new MessageResponse("Supported input formats:", options);
219 res.raw = options;
220 return Response.success(res);
221 }
222
223 private async resolveImportPassword(options: OptionValues): Promise<string> {
224 const password = await CliUtils.getPassword(

Callers 1

runMethod · 0.95

Calls 4

mapMethod · 0.80
getImportOptionsMethod · 0.80
successMethod · 0.80
sortMethod · 0.45

Tested by

no test coverage detected