mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-07 19:07:45 +01:00
notnull
This commit is contained in:
parent
beb9887afe
commit
0aa0d89396
@ -39,7 +39,7 @@ export class ListCommand {
|
||||
if (cmd.folderid != null || cmd.collectionid != null || cmd.organizationid != null) {
|
||||
ciphers = ciphers.filter((c) => {
|
||||
if (cmd.folderid != null) {
|
||||
if (cmd.folderid === '!null' && c.folderId != null) {
|
||||
if (cmd.folderid === 'notnull' && c.folderId != null) {
|
||||
return true;
|
||||
}
|
||||
const folderId = cmd.folderid === 'null' ? null : cmd.folderid;
|
||||
@ -49,7 +49,7 @@ export class ListCommand {
|
||||
}
|
||||
|
||||
if (cmd.organizationid != null) {
|
||||
if (cmd.organizationid === '!null' && c.organizationId != null) {
|
||||
if (cmd.organizationid === 'notnull' && c.organizationId != null) {
|
||||
return true;
|
||||
}
|
||||
const organizationId = cmd.organizationid === 'null' ? null : cmd.organizationid;
|
||||
@ -59,7 +59,7 @@ export class ListCommand {
|
||||
}
|
||||
|
||||
if (cmd.collectionid != null) {
|
||||
if (cmd.collectionid === '!null' && c.collectionIds != null && c.collectionIds.length > 0) {
|
||||
if (cmd.collectionid === 'notnull' && c.collectionIds != null && c.collectionIds.length > 0) {
|
||||
return true;
|
||||
}
|
||||
const collectionId = cmd.collectionid === 'null' ? null : cmd.collectionid;
|
||||
|
@ -221,8 +221,8 @@ export class Program {
|
||||
writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2');
|
||||
writeLn(' bw list items --search google --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2');
|
||||
writeLn(' bw list items --folderid null');
|
||||
writeLn(' bw list items --organizationid !null');
|
||||
writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid !null');
|
||||
writeLn(' bw list items --organizationid notnull');
|
||||
writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid notnull');
|
||||
writeLn(' bw list folders --search email');
|
||||
writeLn('', true);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user