colrev.ops.upgrade.Upgrade¶
- class Upgrade(*, review_manager)[source]¶
Bases:
Operation
Upgrade a CoLRev project
Methods
Check the operation precondition
Conclude the operation (stop Docker containers)
Decorator for operations
Load the records dictionary from a file and parse it using the bibtex parser.
Upgrade a CoLRev project (main entrypoint)
Notify the review_manager about the next operation
Save the records dictionary to a file and add it to the repository index.
Attributes
type
repo
- check_precondition()¶
Check the operation precondition
- Return type:
None
- conclude()¶
Conclude the operation (stop Docker containers)
- Return type:
None
- classmethod decorate()¶
Decorator for operations
- Return type:
Callable
- load_records_dict()[source]¶
Load the records dictionary from a file and parse it using the bibtex parser.
- Return type:
dict
- Returns:
dict: The loaded records dictionary.
- notify(*, state_transition=True)¶
Notify the review_manager about the next operation
- Return type:
None