class documentation
class ProcessFilterDriver:
Constructor: ProcessFilterDriver(clean_cmd, smudge_cmd, required, cwd, ...)
Filter driver that executes external processes.
| Method | __del__ |
Clean up the process filter on destruction. |
| Method | __init__ |
Initialize ProcessFilterDriver. |
| Method | clean |
Apply clean filter using external process. |
| Method | cleanup |
Clean up the process filter. |
| Method | reuse |
Check if this filter driver should be reused with the given configuration. |
| Method | smudge |
Apply smudge filter using external process. |
| Instance Variable | clean |
Undocumented |
| Instance Variable | cwd |
Undocumented |
| Instance Variable | process |
Undocumented |
| Instance Variable | required |
Undocumented |
| Instance Variable | smudge |
Undocumented |
| Method | _get |
Get or start the long-running process filter. |
| Method | _use |
Use the long-running process filter for the operation. |
| Instance Variable | _capabilities |
Undocumented |
| Instance Variable | _process |
Undocumented |
| Instance Variable | _process |
Undocumented |
| Instance Variable | _protocol |
Undocumented |
def __init__(self, clean_cmd:
str | None = None, smudge_cmd: str | None = None, required: bool = False, cwd: str | None = None, process_cmd: str | None = None):
¶
Initialize ProcessFilterDriver.
| Parameters | |
cleanstr | None | Command to run for clean filter |
smudgestr | None | Command to run for smudge filter |
required:bool | Whether the filter is required |
cwd:str | None | Working directory for filter execution |
processstr | None | Command to run for process filter (preferred for performance) |