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

Method listCommand

apps/cli/src/tools/send/send.program.ts:139–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 private listCommand(): Command {
140 return new Command("list")
141
142 .description("List all the Sends owned by you")
143 .on("--help", () => {
144 writeLn(chalk("This is in the list command"));
145 })
146 .action(async (options: OptionValues) => {
147 await this.exitIfLocked();
148 const cmd = new SendListCommand(
149 this.serviceContainer.sendService,
150 this.serviceContainer.environmentService,
151 this.serviceContainer.searchService,
152 this.serviceContainer.accountService,
153 );
154 const response = await cmd.run(options);
155 this.processResponse(response);
156 });
157 }
158
159 private templateCommand(): Command {
160 return new Command("template")

Callers 1

sendCommandMethod · 0.95

Calls 4

runMethod · 0.95
actionMethod · 0.80
descriptionMethod · 0.45
processResponseMethod · 0.45

Tested by

no test coverage detected