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

Method register

apps/cli/src/vault.program.ts:23–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22export class VaultProgram extends BaseProgram {
23 async register() {
24 program
25 .addCommand(this.listCommand())
26 .addCommand(this.getCommand())
27 .addCommand(this.createCommand())
28 .addCommand(this.editCommand())
29 .addCommand(this.deleteCommand())
30 .addCommand(this.restoreCommand())
31 .addCommand(this.shareCommand("move", false))
32 .addCommand(this.confirmCommand())
33 .addCommand(this.importCommand())
34 .addCommand(this.exportCommand())
35 .addCommand(this.shareCommand("share", true))
36 .addCommand(this.archiveCommand());
37 }
38
39 private validateObject(requestedObject: string, validObjects: string[]): boolean {
40 let success = true;

Callers 1

registerOssProgramsFunction · 0.95

Calls 11

listCommandMethod · 0.95
getCommandMethod · 0.95
createCommandMethod · 0.95
editCommandMethod · 0.95
deleteCommandMethod · 0.95
restoreCommandMethod · 0.95
shareCommandMethod · 0.95
confirmCommandMethod · 0.95
importCommandMethod · 0.95
exportCommandMethod · 0.95
archiveCommandMethod · 0.95

Tested by

no test coverage detected