From 037ce0d19b549a9c6e9c8a59477794821887614d Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sun, 3 Jul 2022 20:10:40 +0000 Subject: [PATCH] move config to root --- config/config.lua => config.lua | 0 generate.py | 4 +++- {config/library => library}/drawing.lua | 0 {config/library => library}/index.lua | 0 {config/library => library}/input.lua | 0 {config/library => library}/memory.lua | 0 {config/library => library}/sound.lua | 0 {config/library => library}/system.lua | 0 {config/library => library}/utilities.lua | 0 9 files changed, 3 insertions(+), 1 deletion(-) rename config/config.lua => config.lua (100%) rename {config/library => library}/drawing.lua (100%) rename {config/library => library}/index.lua (100%) rename {config/library => library}/input.lua (100%) rename {config/library => library}/memory.lua (100%) rename {config/library => library}/sound.lua (100%) rename {config/library => library}/system.lua (100%) rename {config/library => library}/utilities.lua (100%) diff --git a/config/config.lua b/config.lua similarity index 100% rename from config/config.lua rename to config.lua diff --git a/generate.py b/generate.py index 478fdd2..1716b5e 100755 --- a/generate.py +++ b/generate.py @@ -1,6 +1,7 @@ #!/bin/python3 import requests from os import path +import os import re from dataclasses import dataclass @@ -321,7 +322,8 @@ def create_lua_function(function_name: str): return doc_comment + "\n" + func_signature def main(): - library_path = "config/library" + library_path = "library" + os.makedirs(library_path, exist_ok=True) for section_name, funcs in list_available_functions().items(): with open(f"{library_path}/{section_name}.lua", "w") as f: f.write("---@meta\n\n") diff --git a/config/library/drawing.lua b/library/drawing.lua similarity index 100% rename from config/library/drawing.lua rename to library/drawing.lua diff --git a/config/library/index.lua b/library/index.lua similarity index 100% rename from config/library/index.lua rename to library/index.lua diff --git a/config/library/input.lua b/library/input.lua similarity index 100% rename from config/library/input.lua rename to library/input.lua diff --git a/config/library/memory.lua b/library/memory.lua similarity index 100% rename from config/library/memory.lua rename to library/memory.lua diff --git a/config/library/sound.lua b/library/sound.lua similarity index 100% rename from config/library/sound.lua rename to library/sound.lua diff --git a/config/library/system.lua b/library/system.lua similarity index 100% rename from config/library/system.lua rename to library/system.lua diff --git a/config/library/utilities.lua b/library/utilities.lua similarity index 100% rename from config/library/utilities.lua rename to library/utilities.lua