Atlas-Install/source/mkw/Patch/PatchOperation/Operation/Rename.py

20 lines
376 B
Python

from typing import IO
from source.mkw.Patch.PatchOperation.Operation import *
Patch: str
class Rename(AbstractOperation):
"""
Rename the output file
"""
type = "rename"
def __init__(self, name: str):
self.name = name
def patch(self, patch: "Patch", file_name: str, file_content: IO) -> (str, IO):
return self.name, file_content