GitGrepInput (autotransform.input.gitgrep)

The implementation for the GitGrepInput.

class autotransform.input.gitgrep.GitGrepInput(*, pattern: str)

Bases: Input

An Input that uses git grep to search a repository for a pattern and returns all files that contain a match of the supplied pattern.

pattern

The pattern to search git grep for.

Type:

str

name

The name of the component.

Type:

ClassVar[InputName]

get_items() Sequence[FileItem]

Gets a list of files using git grep that match the supplied pattern.

Returns:

The eligible files for transformation.

Return type:

Sequence[FileItem]

name: ClassVar[InputName] = 'git_grep'
pattern: str