7
7
"""
8
8
CLI for Investing Algorithm Framework
9
9
10
- This module provides a command-line interface (CLI) for the Investing Algorithm Framework.
10
+ This module provides a command-line interface (CLI) for the
11
+ Investing Algorithm Framework.
11
12
"""
12
13
13
14
@@ -16,11 +17,13 @@ def cli():
16
17
"""CLI for Investing Algorithm Framework"""
17
18
pass
18
19
20
+
19
21
@click .command ()
20
22
@click .option (
21
23
'--type' ,
22
24
default = "default" ,
23
- help = "Type of app to create. Options are: 'default', 'default-web', 'azure-function'."
25
+ help = "Type of app to create. "
26
+ "Options are: 'default', 'default-web', 'azure-function'."
24
27
)
25
28
@click .option (
26
29
'--path' , default = None , help = "Path to directory to initialize the app in"
@@ -29,7 +32,8 @@ def cli():
29
32
'--replace' ,
30
33
is_flag = True ,
31
34
default = False ,
32
- help = "If True, duplicate files will be replaced. If False, files will not be replaced."
35
+ help = "If True, duplicate files will be replaced."
36
+ "If False, files will not be replaced."
33
37
)
34
38
def init (type , path , replace ):
35
39
"""
@@ -128,17 +132,18 @@ def deploy_azure_function(
128
132
Returns:
129
133
None
130
134
"""
135
+ crg = create_resource_group_if_not_exists
131
136
deploy_to_azure_function_command (
132
137
resource_group = resource_group ,
133
138
subscription_id = subscription_id ,
134
139
storage_account_name = storage_account_name ,
135
140
container_name = container_name ,
136
141
deployment_name = deployment_name ,
137
142
region = region ,
138
- create_resource_group_if_not_exists = \
139
- create_resource_group_if_not_exists ,
143
+ create_resource_group_if_not_exists = crg ,
140
144
skip_login = skip_login
141
145
)
142
146
147
+
143
148
cli .add_command (init )
144
149
cli .add_command (deploy_azure_function )
0 commit comments