1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

added search and filter options for list command

This commit is contained in:
Kyle Spearrin
2018-05-16 10:56:46 -04:00
parent 8331190486
commit c82ded58eb
2 changed files with 99 additions and 9 deletions

View File

@@ -108,6 +108,10 @@ export class Program {
program
.command('list <object>')
.description('List objects.')
.option('--search <search>', 'Perform a search on the listed objects.')
.option('--folderid <folderid>', 'Filter items by folder id.')
.option('--collectionid <collectionid>', 'Filter items by collection id.')
.option('--organizationid <organizationid>', 'Filter items or collections by organization id.')
.action(async (object, cmd) => {
await this.exitIfLocked();
const command = new ListCommand(this.main.cipherService, this.main.folderService,