Manager (autotransform.util.manager)
Provides utility methods for interacting with the management of outstanding Changes.
- class autotransform.util.manager.Manager(*, repo: Repo, steps: List[Step])
Bases:
ComponentModel
The information and functionality required for managing outstanding changes.
- static from_console(prev_manager: Optional[Manager] = None) Manager
Gets a Manager using console inputs.
- static from_data(data: Dict[str, Any]) Manager
Produces an instance of the Manager from decoded data.
- Parameters
data (Mapping[str, Any]) – The JSON decoded data.
- Returns
An instance of the Manager.
- Return type
- static from_json(manager_json: str) Manager
Builds a Manager from JSON encoded values.
- Parameters
manager_json (str) – The JSON encoded Manager.
- Returns
The Manager from the JSON.
- Return type
- static init_from_console(repo_name: Optional[RepoName] = None, simple: bool = False) Manager
Gets a Manager using console inputs.
- static read(file_path: str) Manager
Reads management info from a JSON encoded file.
- Parameters
file_path (str) – The path where the JSON for the management info is located.
- Returns
The Manager from the file.
- Return type
- run() None
Runs the management.
- write(file_path: str) None
Writes the management information to a file as JSON.
- Parameters
file_path (str) – The file to write to.