File tree 1 file changed +14
-17
lines changed
investing_algorithm_framework/cli
1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,6 @@ def create_file_from_template(template_path, output_path):
58
58
59
59
60
60
def command (path = None , web = False ):
61
- """
62
- Command-line tool for creating an azure function enabled app skeleton.
63
-
64
- Args:
65
- add_app_template (bool): Flag to create an app skeleton.
66
- add_requirements_template (bool): Flag to create a
67
- requirements template.
68
-
69
- Returns:
70
- None
71
- """
72
61
"""
73
62
Function to create an azure function app skeleton.
74
63
@@ -90,12 +79,20 @@ def command(path = None, web = False):
90
79
# Get the path of this script (command.py)
91
80
current_script_path = os .path .abspath (__file__ )
92
81
93
- # Construct the path to the template file
94
- template_app_file_path = os .path .join (
95
- os .path .dirname (current_script_path ),
96
- "templates" ,
97
- "app.py.template"
98
- )
82
+ if web :
83
+ # Construct the path to the template file
84
+ template_app_file_path = os .path .join (
85
+ os .path .dirname (current_script_path ),
86
+ "templates" ,
87
+ "app-web.py.template"
88
+ )
89
+ else :
90
+ # Construct the path to the template file
91
+ template_app_file_path = os .path .join (
92
+ os .path .dirname (current_script_path ),
93
+ "templates" ,
94
+ "app.py.template"
95
+ )
99
96
requirements_path = os .path .join (
100
97
os .path .dirname (current_script_path ),
101
98
"templates" ,
You can’t perform that action at this time.
0 commit comments