FEAT: adding create_project

This commit is contained in:
2026-10-19 11:59:24 -04:00
parent 06eb74e13f
commit 380f295c93
6 changed files with 225 additions and 46 deletions
+4 -3
View File
@@ -3,12 +3,13 @@ local M = {}
M.main = function(opts)
local template = [=[
def main() -> None:
printf("Hello from %s!")
print("Hello from %s!")
if __name__ == "__main__":
main()
]=]
return string.format(template, opts.project_name)
return string.format(template, opts)
end
M.__init__ = function(opts)
@@ -47,7 +48,7 @@ M.module = function(opts)
%s module
"""
]=]
return string.format(template, opts.project_name)
return string.format(template, opts)
end
return M