add original pipeline to output

main
NotAFile 2021-09-29 19:31:45 +02:00
parent fd2095c86e
commit 7602605cdf
1 changed files with 4 additions and 2 deletions

View File

@ -5,9 +5,8 @@ import sys
from . import convert
FILE_START = """\
# generated with hellpipe
def main():
def main():\
"""
FILE_END = """
if __name__ == "__main__":
@ -49,6 +48,9 @@ def main():
for stage in stages:
print("\n".join(stage.imports))
print()
print("# generated by hellpipe from input pipeline:")
print("#", command)
print(FILE_START)
for stage in stages: