plexus.cli.shared.utils module

plexus.cli.shared.utils.parse_kv_pairs(params: Tuple[str]) Dict[str, str]

Parses a tuple of strings in “key=value” format into a dictionary.

Args:

params: A tuple of strings, e.g., (“key1=value1”, “key2=value2”).

Returns:

A dictionary of the parsed key-value pairs.

Raises:

ValueError: If a parameter string is not in the key=value format.