qwikstart.operations.search_and_replace module¶
-
class
qwikstart.operations.search_and_replace.Context(execution_context:qwikstart.base_context.ExecutionContext, file_path:pathlib.Path, search:str, replace:str, use_regex:bool=False)¶ Bases:
qwikstart.base_context.BaseContext-
file_path: Path = None¶
-
classmethod
help(field_name: str) → Optional[str]¶
-
replace: str = None¶
-
search: str = None¶
-
use_regex: bool = False¶
-
-
class
qwikstart.operations.search_and_replace.Operation(local_context: Optional[Mapping[str, Any]] = None, opconfig: Optional[Dict[str, Any]] = None, description: str = '')¶ Bases:
qwikstart.operations.base.BaseOperationOperation for searching for text and replacing it with new text.
See https://qwikstart.readthedocs.io/en/latest/operations/search_and_replace.html
-
name: str = 'search_and_replace'¶
-
run(context: qwikstart.operations.search_and_replace.Context) → None¶ Override with action
-