Meh I'll figure out submodules later

This commit is contained in:
mustard 2025-09-16 01:01:02 +02:00
parent 4ca9d44a90
commit 8cb281f436
352 changed files with 66107 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
import os
import subprocess
def generate_file(name, outpath, **kwargs):
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader('./vararg'))
template = env.get_template(name)
path = os.path.join(outpath, name)
with open(path, 'w') as fp:
fp.write(template.render(kwargs))
subprocess.run(["lua-format", "-i", path])
if __name__ == '__main__':
generate_file('rotate.lua', '../lua/plenary/vararg', amount=16)