@@ -1096,8 +1096,8 @@ def version(pkg_root: Path):
1096
1096
help = "Set execution profile for Nextflow workflow" ,
1097
1097
)
1098
1098
@click .option (
1099
- "--destination " ,
1100
- "-d " ,
1099
+ "--output " ,
1100
+ "-o " ,
1101
1101
type = click .Path (path_type = Path ),
1102
1102
default = None ,
1103
1103
help = (
@@ -1111,7 +1111,7 @@ def generate_entrypoint(
1111
1111
metadata_root : Optional [Path ],
1112
1112
nf_script : Path ,
1113
1113
execution_profile : Optional [str ],
1114
- destination : Optional [Path ],
1114
+ output : Optional [Path ],
1115
1115
yes : bool ,
1116
1116
):
1117
1117
"""Generate a `wf/entrypoint.py` file from a Nextflow workflow"""
@@ -1120,23 +1120,23 @@ def generate_entrypoint(
1120
1120
from latch_cli .nextflow .workflow import generate_nextflow_workflow
1121
1121
from latch_cli .services .register .utils import import_module_by_path
1122
1122
1123
- if destination is None :
1124
- destination = pkg_root / "wf" / "custom_entrypoint.py"
1123
+ if output is None :
1124
+ output = pkg_root / "wf" / "custom_entrypoint.py"
1125
1125
1126
- destination = destination .with_suffix (".py" )
1126
+ output = output .with_suffix (".py" )
1127
1127
1128
1128
if not yes and not click .confirm (
1129
- f"Will generate an entrypoint at { destination } . Proceed?"
1129
+ f"Will generate an entrypoint at { output } . Proceed?"
1130
1130
):
1131
1131
raise click .exceptions .Abort
1132
1132
1133
- destination .parent .mkdir (exist_ok = True )
1133
+ output .parent .mkdir (exist_ok = True )
1134
1134
1135
1135
if (
1136
1136
not yes
1137
- and destination .exists ()
1137
+ and output .exists ()
1138
1138
and not click .confirm (
1139
- f"Nextflow entrypoint already exists at `{ destination } `. Overwrite?"
1139
+ f"Nextflow entrypoint already exists at `{ output } `. Overwrite?"
1140
1140
)
1141
1141
):
1142
1142
return
@@ -1161,11 +1161,7 @@ def generate_entrypoint(
1161
1161
raise click .exceptions .Exit (1 )
1162
1162
1163
1163
generate_nextflow_workflow (
1164
- pkg_root ,
1165
- metadata_root ,
1166
- nf_script ,
1167
- destination ,
1168
- execution_profile = execution_profile ,
1164
+ pkg_root , metadata_root , nf_script , output , execution_profile = execution_profile
1169
1165
)
1170
1166
1171
1167
0 commit comments