maxwelllink.cli.mxl_clean module¶
Clean local MaxwellLink workspace artifacts created by mxl-init.
This module provides the implementation behind mxl-clean and
mxl clean.
- maxwelllink.cli.mxl_clean.clean_workspace(destination, payload_root, force=False)[source]¶
Clean managed workspace files and symlinks from a destination folder.
- Parameters:
destination (pathlib.Path) – Workspace directory to clean.
payload_root (pathlib.Path) – Root directory containing installed payload targets.
force (bool, default=False) – Whether to remove conflicting/modified managed paths.
- Raises:
FileNotFoundError – If
payload_rootis invalid.FileExistsError – If conflicting managed paths are found and
forceisFalse.
- Return type:
None