Workspace#
Definition#
A workspace is the primary structure where you organize and manage your projects. Each workspace can contain multiple projects and related structures.
- Working area for one or more project
- Physical folder location
You can use init
command to create fresh workspace or you can use the workspace
command to perform operations
Terminology#
Selected Workspace#
Selected workspace is the workspace that you have explicitly chosen. It might not necessarily be the one you are currently working in but is marked as your preferred workspace.
Example
In the workspace list, the selected workspace is indicated by a selected
label.
(4) workspace available* workspace_0 (selected) workspace_1 workspace_2 workspace_3
Active Workspace#
Active workspace is the workspace that is associated with your current directory or any parent directory. It represents the workspace that is actively in use within the context of your current location in the file system.
Example
In the workspace list, the active workspace is indicated by an active
label.
(4) workspace available* workspace_0 (active) workspace_1 (selected) workspace_2 workspace_3
Current Workspace#
Current workspace is determined based on the presence of an active workspace. If an active workspace exists, it is considered the current workspace, regardless of which workspace is selected. If no active workspace is present, the selected workspace becomes the current workspace.
Example
If the current workspace is only selected, it is indicated as below:
(4) workspace available* workspace_0 (selected) workspace_1 workspace_2 workspace_3
If the current workspace is both active and selected, it is indicated as below:
(4) workspace available* workspace_0 (active & selected) workspace_1 workspace_2 workspace_3
If the current workspace is only active, it is indicated as below:
(4) workspace available* workspace_0(active) workspace_1 (selected) workspace_2 workspace_3
By understanding these distinctions, you can better navigate and manage your workspaces within the system. Here is a quick summary of the labels used in the workspace list:
active
: Active workspaceselected
: Selected workspaceactive & selected
: Both Active and Selected*
: Current workspace
This structure ensures you always know which workspace is in use and how they are identified within the system.
Initializing Workspace#
To initialize a new workspace, use the init
command:
Listing Workspaces#
To list all available workspaces, use the workspace list
command:
Workspace Details#
To view details of a specific workspace, use the workspace describe
command:
Removing Workspace#
To remove a workspace, use the workspace remove
command:
Changing Current Workspace#
To change the active workspace, navigate to the desired workspace directory and use the workspace --switch
command:
By keeping these commands and concepts in mind, you can efficiently manage your workspaces in Pars.