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

Method visibleObjects

apps/cli/src/vault.program.ts:48–54  ·  view source on GitHub ↗

Hides the object names that use the terminology the feature flag has turned off.

(objects: string[], useSharedFoldersTerm: boolean)

Source from the content-addressed store, hash-verified

46
47 /** Hides the object names that use the terminology the feature flag has turned off. */
48 private visibleObjects(objects: string[], useSharedFoldersTerm: boolean): string[] {
49 return objects.filter((object) =>
50 useSharedFoldersTerm
51 ? !object.includes("collection") && object !== "folder" && object !== "folders"
52 : !object.includes("shared-folder") && !object.includes("my-folder"),
53 );
54 }
55
56 private validateObject(
57 requestedObject: string,

Callers 5

listCommandMethod · 0.95
getCommandMethod · 0.95
createCommandMethod · 0.95
editCommandMethod · 0.95
deleteCommandMethod · 0.95

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected