Summary
Good morning! I'm using a ShellTask
to curl + gunzip
a file. The input filename is formatted like date.json.gz
and I want to set the output location to date.json
, that is, to strip off the .gz
from the {input.filename}
. I see the OutputLocation
dataclass allows using a regex: https://github.com/flyteorg/flytekit/blob/f16419136abcf971d30d3398bd7b35a7b6aec904/flytekit/extras/tasks/shell.py#L37 but I can't figure out how that works. Are there any examples? Thanks!