()
| 21 | |
| 22 | export 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; |
no test coverage detected