FEAT: adding create_project
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user