@@ -36,18 +36,20 @@ def create(path :str, template :str):
3636@click .command ()
3737@click .argument ('path' )
3838@click .option ('--source' , default = None , help = 'Main source file' )
39- @click .option ('--runtime ' , default = None , help = 'Runtime to use' )
39+ @click .option ('--type ' , default = None , help = 'Type of runtime to use' )
4040@click .option ('--port' , default = "8080" , help = 'Port to use, optional' )
41- def run (path :str , source :str = "app.py" , runtime :str = "type" , port :str = "8080" ):
41+ @click .option ('--params' , default = None , help = 'Params to use, optional' )
42+ def run (path :str , source :str = "app.py" , type :str = "type" , port :str = "8080" , params :str = None ):
4243 """
4344 Run Project
4445
4546 --path: The path to the project. Required argument.
4647 --source: The main source file to run. Defaults to 'app.py'.
47- --runtime : The type of content to run. Defaults to 'python'.
48+ --type : The type of content to run. Defaults to 'python'.
4849 --port: The port to use when content requires one. Defaults to '8080'.
50+ --params: An optional JSON string with additional parameters.
4951 """
50- api_run (path , source , runtime , port )
52+ api_run (path , source , type , port , params )
5153
5254@click .command ()
5355@click .argument ('path' )
0 commit comments