refactor: remove unused code

This commit is contained in:
debugtalk
2020-01-03 16:36:18 +08:00
parent 720c02e6ab
commit 71b1ebcdff

View File

@@ -383,18 +383,11 @@ def create_scaffold(project_name):
logger.color_print(msg, "BLUE")
def create_file(path, file_content=""):
with open(path, 'w') as f:
with open(path, 'w', encoding='utf-8') as f:
f.write(file_content)
msg = "created file: {}".format(path)
logger.color_print(msg, "BLUE")
def create_path(path, ptype, file_content=""):
if ptype == "folder":
os.makedirs(path)
elif ptype == "file":
with open(path, 'w') as f:
f.write(file_content)
demo_api_content = """
name: demo api
variables: