mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
allow gets by search term
This commit is contained in:
@@ -9,6 +9,10 @@ export class DeleteCommand {
|
||||
constructor(private cipherService: CipherService, private folderService: FolderService) { }
|
||||
|
||||
async run(object: string, id: string, cmd: program.Command): Promise<Response> {
|
||||
if (id != null) {
|
||||
id = id.toLowerCase();
|
||||
}
|
||||
|
||||
switch (object.toLowerCase()) {
|
||||
case 'item':
|
||||
return await this.deleteCipher(id);
|
||||
|
||||
Reference in New Issue
Block a user