Skip to content

Commit d87c051

Browse files
committed
impr: update mount data option and description
1 parent 3da1032 commit d87c051

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/main/java/io/seqera/tower/cli/commands/data/links/DataLinkService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public List<String> getDataLinkIds(DataLinkRefOptions.DataLinkRef dataLinkRef, L
109109
.collect(Collectors.toList());
110110
}
111111

112-
if (dataLinkRef.getMountDataResourceRefs() != null) {
113-
dataLinkIds = dataLinkRef.getMountDataResourceRefs().stream()
112+
if (dataLinkRef.getMountDataUris() != null) {
113+
dataLinkIds = dataLinkRef.getMountDataUris().stream()
114114
.map(resourceRef -> getDataLinkIdByResourceRef(wspId, resourceRef))
115115
.collect(Collectors.toList());
116116
}

src/main/java/io/seqera/tower/cli/commands/studios/DataLinkRefOptions.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ public class DataLinkRefOptions {
2929
public DataLinkRef dataLinkRef;
3030

3131
public static class DataLinkRef {
32-
@CommandLine.Option(names = {"--mount-data"}, description = "Optional configuration override for 'mountData' setting (comma separate list of data-link names).", split = ",")
33-
private List<String> mountDataNames;
3432

35-
@CommandLine.Option(names = {"--mount-data-ids"}, description = "Optional configuration override for 'mountData' setting (comma separate list of data-link Ids).", split = ",")
33+
@CommandLine.Option(names = {"--mount-data-uris"}, description = "Comma separate list of data-link URIs: s3://nextflow-bucket,s3://another-bucket", split = ",")
34+
private List<String> mountDataUris;
35+
@CommandLine.Option(names = {"--mount-data"}, description = "Comma separate list of data-link names: nextflow-bucket,my-custom-data-link-name", split = ",")
36+
private List<String> mountDataNames;
37+
@CommandLine.Option(names = {"--mount-data-ids"}, description = "Comma separate list of data-link ids: v1-cloud-YjI3MjMwOTMyNjUwNzk5tbG9yZQ=,v1-user-d2c505e70901d2bf6516d,", split = ",")
3638
private List<String> mountDataIds;
3739

38-
@CommandLine.Option(names = {"--mount-data-resource-refs"}, description = "Optional configuration override for 'mountData' setting (comma separate list of data-link resource refs).", split = ",")
39-
private List<String> mountDataResourceRefs;
40-
4140
public List<String> getMountDataNames() {
4241
validate();
4342
return mountDataNames;
@@ -48,14 +47,14 @@ public List<String> getMountDataIds() {
4847
return mountDataIds;
4948
}
5049

51-
public List<String> getMountDataResourceRefs() {
50+
public List<String> getMountDataUris() {
5251
validate();
53-
return mountDataResourceRefs;
52+
return mountDataUris;
5453
}
5554

5655
private void validate() {
5756
boolean namesProvided = mountDataNames != null;
58-
boolean resourceRefsProvided = mountDataResourceRefs != null;
57+
boolean resourceRefsProvided = mountDataUris != null;
5958
boolean idsProvided = mountDataIds != null;
6059

6160
// check that exactly 1 is provided

0 commit comments

Comments
 (0)