Skip to content

Commit 0171fad

Browse files
committed
✨ feat (cli): add -with-seqera as a cli alias for -with-tower
Signed-off-by: Ken Brewer <kenibrewer@users.noreply.github.com>
1 parent fa5a40e commit 0171fad

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

docs/reference/cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,9 @@ The `kuberun` command supports the following options from [`run`](#run):
631631
- `-with-dag`
632632
- `-N, -with-notification`
633633
- `-with-report`
634+
- `-with-seqera`
634635
- `-with-spack`
635636
- `-with-timeline`
636-
- `-with-tower`
637637
- `-with-trace`
638638
- `-with-wave`
639639
- `-with-weblog`
@@ -1194,6 +1194,9 @@ The `run` command is used to execute a local pipeline script or remote pipeline
11941194
`-with-report` (`report-<timestamp>.html`)
11951195
: Create workflow execution HTML report.
11961196

1197+
`-with-seqera`, `-with-tower` (`https://api.cloud.seqera.io`)
1198+
: Monitor workflow execution with [Seqera Platform](https://seqera.io/) (formerly Tower Cloud).
1199+
11971200
`-with-singularity`
11981201
: Enable process execution in a Singularity container.
11991202

@@ -1203,9 +1206,6 @@ The `run` command is used to execute a local pipeline script or remote pipeline
12031206
`-with-timeline` (`timeline-<timestamp>.html`)
12041207
: Create workflow execution timeline.
12051208

1206-
`-with-tower` (`https://api.cloud.seqera.io`)
1207-
: Monitor workflow execution with [Seqera Platform](https://seqera.io/) (formerly Tower Cloud).
1208-
12091209
`-with-trace` (`trace-<timestamp>.txt`)
12101210
: Create workflow execution trace file.
12111211

@@ -1271,7 +1271,7 @@ The `run` command is used to execute a local pipeline script or remote pipeline
12711271
- Execute a pipeline with integrated monitoring in [Seqera Platform](https://seqera.io).
12721272

12731273
```console
1274-
$ nextflow run nextflow-io/hello -with-tower
1274+
$ nextflow run nextflow-io/hello -with-seqera
12751275
```
12761276

12771277
- Execute a pipeline with a custom parameters file (YAML or JSON).

modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class CmdRun extends CmdBase implements HubOptions {
167167
launcher.options.ansiLog = value
168168
}
169169

170-
@Parameter(names = ['-with-tower'], description = 'Monitor workflow execution with Seqera Platform (formerly Tower Cloud)')
170+
@Parameter(names = ['-with-tower', '-with-seqera'], description = 'Monitor workflow execution with Seqera Platform (formerly Tower Cloud)')
171171
String withTower
172172

173173
@Parameter(names = ['-with-wave'], hidden = true)

modules/nextflow/src/main/groovy/nextflow/cli/Launcher.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class Launcher {
293293
normalized << '-'
294294
}
295295

296-
else if( current == '-with-tower' && (i==args.size() || args[i].startsWith('-'))) {
296+
else if( (current == '-with-tower' || current == '-with-seqera') && (i==args.size() || args[i].startsWith('-'))) {
297297
normalized << '-'
298298
}
299299

modules/nextflow/src/test/groovy/nextflow/cli/LauncherTest.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ class LauncherTest extends Specification {
195195
launcher.normalizeArgs('run','-with-tower', '-x') == ['run', '-with-tower', '-', '-x']
196196
launcher.normalizeArgs('run','-with-tower', 'foo.com') == ['run', '-with-tower','foo.com']
197197

198+
launcher.normalizeArgs('run','-with-seqera') == ['run', '-with-seqera', '-']
199+
launcher.normalizeArgs('run','-with-seqera', '-x') == ['run', '-with-seqera', '-', '-x']
200+
launcher.normalizeArgs('run','-with-seqera', 'foo.com') == ['run', '-with-seqera','foo.com']
201+
198202
launcher.normalizeArgs('run','-with-wave') == ['run', '-with-wave', '-']
199203
launcher.normalizeArgs('run','-with-wave', '-x') == ['run', '-with-wave', '-', '-x']
200204
launcher.normalizeArgs('run','-with-wave', 'foo.com') == ['run', '-with-wave','foo.com']

0 commit comments

Comments
 (0)