maxwelllink.cli.mxl_init module

Initialize local MaxwellLink workspace links for agent workflows.

This module provides the implementation behind mxl-init and mxl init.

maxwelllink.cli.mxl_init.initialize_workspace(destination, payload_root, force=False)[source]

Initialize a local workspace directory for MaxwellLink agent use.

Parameters:
  • destination (pathlib.Path) – Directory where files/symlinks will be created.

  • payload_root (pathlib.Path) – Root directory containing the install-time workspace payload.

  • force (bool, default=False) – Whether to overwrite conflicting files/symlinks.

Raises:
  • FileNotFoundError – If payload_root is invalid.

  • FileExistsError – If conflicts are found and force is False.

Return type:

None

maxwelllink.cli.mxl_init.mxl_init_main(argv=None)[source]

Run the mxl-init CLI entry point.

Parameters:

argv (list of str or None, default=None) – Optional command-line arguments. When None, uses sys.argv.

Returns:

0 on success, otherwise non-zero on failure.

Return type:

int