A workspace is a container for all data persisted by ShiftLeft Ocular (on disk and in memory). Workspaces allow you to easily work with Code Property Graphs (CPG) and Security Profiles, load and simultaneously work with more than one CPG, and combine queries.
Your workspace is created the first time you use ShiftLeft Ocular to create a CPG.
To view the contents of your workspace, use the command
Information on the CPGs and their associated layers in the workspace, and whether the CPG and layers are loaded into memory, is displayed.
By default, all operations are executed on the CPG that was last loaded into memory; this is the active CPG. You can determine the active CPG by viewing the contents of your workspace using the command
ocular> workspace. The CPG at the bottom of the list is the active CPG.
To clear out your workspace, removing all CPGs and layers from memory and disk, use
If a CPG is currently loaded, use this command to reset only that specific CPG in order to recreate it