nicc777 / py-animus

A python based plugable and extensible manifest processing system
GNU General Public License v3.0
0 stars 0 forks source link

Add `VariableCache` as parameter to implemented_manifest_differ_from_this_manifest() method in `ManifestBase` class #1

Closed nicc777 closed 1 year ago

nicc777 commented 1 year ago

Brief Description of the Enhancement

Add a parameter to make the current VariableCache instance available inside the method

Describe the benefit of this proposed enhancement

Providing access to the current VariableCache state can provide much more options for processing to determine if applying the current manifest is required or not.

Code examples, pseudo code or any other technical description of the proposal

Current method signature:

def implemented_manifest_differ_from_this_manifest(self, manifest_lookup_function: object=dummy_manifest_lookup_function)->bool:

Proposed method signature:

def implemented_manifest_differ_from_this_manifest(self, manifest_lookup_function: object=dummy_manifest_lookup_function, variable_cache: VariableCache=VariableCache())->bool: