Skip to content

Commit 2058dd5

Browse files
Refactor code to adhere to new naming scheme for "Studio" instead of "Data Studio" (#487)
1 parent b86d8d0 commit 2058dd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+332
-332
lines changed

conf/reflect-config.json

+32-32
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"methods":[{"name":"<init>","parameterTypes":[] }]
180180
},
181181
{
182-
"name":"io.seqera.tower.cli.commands.DataStudiosCmd",
182+
"name":"io.seqera.tower.cli.commands.StudiosCmd",
183183
"allDeclaredFields":true,
184184
"queryAllDeclaredMethods":true,
185185
"methods":[{"name":"<init>","parameterTypes":[] }]
@@ -1037,13 +1037,13 @@
10371037
"queryAllDeclaredMethods":true
10381038
},
10391039
{
1040-
"name":"io.seqera.tower.cli.commands.data.studios.DataStudioRefOptions",
1040+
"name":"io.seqera.tower.cli.commands.data.studios.StudioRefOptions",
10411041
"allDeclaredFields":true,
10421042
"queryAllDeclaredMethods":true,
10431043
"methods":[{"name":"<init>","parameterTypes":[] }]
10441044
},
10451045
{
1046-
"name":"io.seqera.tower.cli.commands.data.studios.DataStudioRefOptions$DataStudioRef",
1046+
"name":"io.seqera.tower.cli.commands.data.studios.StudioRefOptions$StudioRef",
10471047
"allDeclaredFields":true,
10481048
"queryAllDeclaredMethods":true,
10491049
"methods":[{"name":"<init>","parameterTypes":[] }]
@@ -1120,126 +1120,126 @@
11201120
"methods":[{"name":"<init>","parameterTypes":[] }]
11211121
},
11221122
{
1123-
"name":"io.seqera.tower.cli.commands.datastudios.AbstractStudiosCmd",
1123+
"name":"io.seqera.tower.cli.commands.studios.AbstractStudiosCmd",
11241124
"allDeclaredFields":true,
11251125
"queryAllDeclaredMethods":true
11261126
},
11271127
{
1128-
"name":"io.seqera.tower.cli.commands.datastudios.AddCmd",
1128+
"name":"io.seqera.tower.cli.commands.studios.AddCmd",
11291129
"allDeclaredFields":true,
11301130
"queryAllDeclaredMethods":true,
11311131
"methods":[{"name":"<init>","parameterTypes":[] }]
11321132
},
11331133
{
1134-
"name":"io.seqera.tower.cli.commands.datastudios.CheckpointsCmd",
1134+
"name":"io.seqera.tower.cli.commands.studios.CheckpointsCmd",
11351135
"allDeclaredFields":true,
11361136
"queryAllDeclaredMethods":true,
11371137
"methods":[{"name":"<init>","parameterTypes":[] }]
11381138
},
11391139
{
1140-
"name":"io.seqera.tower.cli.commands.datastudios.DataLinkRefOptions",
1140+
"name":"io.seqera.tower.cli.commands.studios.DataLinkRefOptions",
11411141
"allDeclaredFields":true,
11421142
"queryAllDeclaredMethods":true,
11431143
"methods":[{"name":"<init>","parameterTypes":[] }]
11441144
},
11451145
{
1146-
"name":"io.seqera.tower.cli.commands.datastudios.DataLinkRefOptions$DataLinkRef",
1146+
"name":"io.seqera.tower.cli.commands.studios.DataLinkRefOptions$DataLinkRef",
11471147
"allDeclaredFields":true,
11481148
"queryAllDeclaredMethods":true,
11491149
"methods":[{"name":"<init>","parameterTypes":[] }]
11501150
},
11511151
{
1152-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioCheckpointRefOptions",
1152+
"name":"io.seqera.tower.cli.commands.studios.StudioCheckpointRefOptions",
11531153
"allDeclaredFields":true,
11541154
"queryAllDeclaredMethods":true,
11551155
"methods":[{"name":"<init>","parameterTypes":[] }]
11561156
},
11571157
{
1158-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioCheckpointRefOptions$DataStudioCheckpointRef",
1158+
"name":"io.seqera.tower.cli.commands.studios.StudioCheckpointRefOptions$StudioCheckpointRef",
11591159
"allDeclaredFields":true,
11601160
"queryAllDeclaredMethods":true,
11611161
"methods":[{"name":"<init>","parameterTypes":[] }]
11621162
},
11631163
{
1164-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioConfigurationOptions",
1164+
"name":"io.seqera.tower.cli.commands.studios.StudioConfigurationOptions",
11651165
"allDeclaredFields":true,
11661166
"queryAllDeclaredMethods":true,
11671167
"methods":[{"name":"<init>","parameterTypes":[] }]
11681168
},
11691169
{
1170-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioRefOptions",
1170+
"name":"io.seqera.tower.cli.commands.studios.StudioRefOptions",
11711171
"allDeclaredFields":true,
11721172
"queryAllDeclaredMethods":true,
11731173
"methods":[{"name":"<init>","parameterTypes":[] }]
11741174
},
11751175
{
1176-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioRefOptions$DataStudioRef",
1176+
"name":"io.seqera.tower.cli.commands.studios.StudioRefOptions$StudioRef",
11771177
"allDeclaredFields":true,
11781178
"queryAllDeclaredMethods":true,
11791179
"methods":[{"name":"<init>","parameterTypes":[] }]
11801180
},
11811181
{
1182-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioTemplateOptions",
1182+
"name":"io.seqera.tower.cli.commands.studios.StudioTemplateOptions",
11831183
"allDeclaredFields":true,
11841184
"queryAllDeclaredMethods":true,
11851185
"methods":[{"name":"<init>","parameterTypes":[] }]
11861186
},
11871187
{
1188-
"name":"io.seqera.tower.cli.commands.datastudios.DataStudioTemplateOptions$DataStudioTemplate",
1188+
"name":"io.seqera.tower.cli.commands.studios.StudioTemplateOptions$StudioTemplate",
11891189
"allDeclaredFields":true,
11901190
"queryAllDeclaredMethods":true,
11911191
"methods":[{"name":"<init>","parameterTypes":[] }]
11921192
},
11931193
{
1194-
"name":"io.seqera.tower.cli.commands.datastudios.DeleteCmd",
1194+
"name":"io.seqera.tower.cli.commands.studios.DeleteCmd",
11951195
"allDeclaredFields":true,
11961196
"queryAllDeclaredMethods":true,
11971197
"methods":[{"name":"<init>","parameterTypes":[] }]
11981198
},
11991199
{
1200-
"name":"io.seqera.tower.cli.commands.datastudios.ListCmd",
1200+
"name":"io.seqera.tower.cli.commands.studios.ListCmd",
12011201
"allDeclaredFields":true,
12021202
"queryAllDeclaredMethods":true,
12031203
"methods":[{"name":"<init>","parameterTypes":[] }]
12041204
},
12051205
{
1206-
"name":"io.seqera.tower.cli.commands.datastudios.ParentDataStudioRefOptions",
1206+
"name":"io.seqera.tower.cli.commands.studios.ParentStudioRefOptions",
12071207
"allDeclaredFields":true,
12081208
"queryAllDeclaredMethods":true,
12091209
"methods":[{"name":"<init>","parameterTypes":[] }]
12101210
},
12111211
{
1212-
"name":"io.seqera.tower.cli.commands.datastudios.ParentDataStudioRefOptions$ParentDataStudioRef",
1212+
"name":"io.seqera.tower.cli.commands.studios.ParentStudioRefOptions$ParentStudioRef",
12131213
"allDeclaredFields":true,
12141214
"queryAllDeclaredMethods":true,
12151215
"methods":[{"name":"<init>","parameterTypes":[] }]
12161216
},
12171217
{
1218-
"name":"io.seqera.tower.cli.commands.datastudios.StartAsNewCmd",
1218+
"name":"io.seqera.tower.cli.commands.studios.StartAsNewCmd",
12191219
"allDeclaredFields":true,
12201220
"queryAllDeclaredMethods":true,
12211221
"methods":[{"name":"<init>","parameterTypes":[] }]
12221222
},
12231223
{
1224-
"name":"io.seqera.tower.cli.commands.datastudios.StartCmd",
1224+
"name":"io.seqera.tower.cli.commands.studios.StartCmd",
12251225
"allDeclaredFields":true,
12261226
"queryAllDeclaredMethods":true,
12271227
"methods":[{"name":"<init>","parameterTypes":[] }]
12281228
},
12291229
{
1230-
"name":"io.seqera.tower.cli.commands.datastudios.StopCmd",
1230+
"name":"io.seqera.tower.cli.commands.studios.StopCmd",
12311231
"allDeclaredFields":true,
12321232
"queryAllDeclaredMethods":true,
12331233
"methods":[{"name":"<init>","parameterTypes":[] }]
12341234
},
12351235
{
1236-
"name":"io.seqera.tower.cli.commands.datastudios.TemplatesCmd",
1236+
"name":"io.seqera.tower.cli.commands.studios.TemplatesCmd",
12371237
"allDeclaredFields":true,
12381238
"queryAllDeclaredMethods":true,
12391239
"methods":[{"name":"<init>","parameterTypes":[] }]
12401240
},
12411241
{
1242-
"name":"io.seqera.tower.cli.commands.datastudios.ViewCmd",
1242+
"name":"io.seqera.tower.cli.commands.studios.ViewCmd",
12431243
"allDeclaredFields":true,
12441244
"queryAllDeclaredMethods":true,
12451245
"methods":[{"name":"<init>","parameterTypes":[] }]
@@ -1932,49 +1932,49 @@
19321932
"queryAllDeclaredConstructors":true
19331933
},
19341934
{
1935-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudioCheckpointsList",
1935+
"name":"io.seqera.tower.cli.responses.studios.StudioCheckpointsList",
19361936
"allDeclaredFields":true,
19371937
"queryAllDeclaredMethods":true,
19381938
"queryAllDeclaredConstructors":true
19391939
},
19401940
{
1941-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudioDeleted",
1941+
"name":"io.seqera.tower.cli.responses.studios.StudioDeleted",
19421942
"allDeclaredFields":true,
19431943
"queryAllDeclaredMethods":true,
19441944
"queryAllDeclaredConstructors":true
19451945
},
19461946
{
1947-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudioStartSubmitted",
1947+
"name":"io.seqera.tower.cli.responses.studios.StudioStartSubmitted",
19481948
"allDeclaredFields":true,
19491949
"queryAllDeclaredMethods":true,
19501950
"queryAllDeclaredConstructors":true
19511951
},
19521952
{
1953-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudioStopSubmitted",
1953+
"name":"io.seqera.tower.cli.responses.studios.StudioStopSubmitted",
19541954
"allDeclaredFields":true,
19551955
"queryAllDeclaredMethods":true,
19561956
"queryAllDeclaredConstructors":true
19571957
},
19581958
{
1959-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudiosCreated",
1959+
"name":"io.seqera.tower.cli.responses.studios.StudiosCreated",
19601960
"allDeclaredFields":true,
19611961
"queryAllDeclaredMethods":true,
19621962
"queryAllDeclaredConstructors":true
19631963
},
19641964
{
1965-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudiosList",
1965+
"name":"io.seqera.tower.cli.responses.studios.StudiosList",
19661966
"allDeclaredFields":true,
19671967
"queryAllDeclaredMethods":true,
19681968
"queryAllDeclaredConstructors":true
19691969
},
19701970
{
1971-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudiosTemplatesList",
1971+
"name":"io.seqera.tower.cli.responses.studios.StudiosTemplatesList",
19721972
"allDeclaredFields":true,
19731973
"queryAllDeclaredMethods":true,
19741974
"queryAllDeclaredConstructors":true
19751975
},
19761976
{
1977-
"name":"io.seqera.tower.cli.responses.datastudios.DataStudiosView",
1977+
"name":"io.seqera.tower.cli.responses.studios.StudiosView",
19781978
"allDeclaredFields":true,
19791979
"queryAllDeclaredMethods":true,
19801980
"queryAllDeclaredConstructors":true

src/main/java/io/seqera/tower/cli/Tower.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import io.seqera.tower.cli.commands.ComputeEnvsCmd;
2828
import io.seqera.tower.cli.commands.CredentialsCmd;
2929
import io.seqera.tower.cli.commands.DataLinksCmd;
30-
import io.seqera.tower.cli.commands.DataStudiosCmd;
30+
import io.seqera.tower.cli.commands.StudiosCmd;
3131
import io.seqera.tower.cli.commands.DatasetsCmd;
3232
import io.seqera.tower.cli.commands.InfoCmd;
3333
import io.seqera.tower.cli.commands.LaunchCmd;
@@ -61,7 +61,7 @@
6161
ComputeEnvsCmd.class,
6262
CredentialsCmd.class,
6363
DataLinksCmd.class,
64-
DataStudiosCmd.class,
64+
StudiosCmd.class,
6565
DatasetsCmd.class,
6666
GenerateCompletion.class,
6767
InfoCmd.class,

src/main/java/io/seqera/tower/cli/commands/DataStudiosCmd.java src/main/java/io/seqera/tower/cli/commands/StudiosCmd.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717

1818
package io.seqera.tower.cli.commands;
1919

20-
import io.seqera.tower.cli.commands.datastudios.AddCmd;
21-
import io.seqera.tower.cli.commands.datastudios.CheckpointsCmd;
22-
import io.seqera.tower.cli.commands.datastudios.DeleteCmd;
23-
import io.seqera.tower.cli.commands.datastudios.ListCmd;
24-
import io.seqera.tower.cli.commands.datastudios.StartAsNewCmd;
25-
import io.seqera.tower.cli.commands.datastudios.StartCmd;
26-
import io.seqera.tower.cli.commands.datastudios.TemplatesCmd;
27-
import io.seqera.tower.cli.commands.datastudios.StopCmd;
28-
import io.seqera.tower.cli.commands.datastudios.ViewCmd;
20+
import io.seqera.tower.cli.commands.studios.AddCmd;
21+
import io.seqera.tower.cli.commands.studios.CheckpointsCmd;
22+
import io.seqera.tower.cli.commands.studios.DeleteCmd;
23+
import io.seqera.tower.cli.commands.studios.ListCmd;
24+
import io.seqera.tower.cli.commands.studios.StartAsNewCmd;
25+
import io.seqera.tower.cli.commands.studios.StartCmd;
26+
import io.seqera.tower.cli.commands.studios.TemplatesCmd;
27+
import io.seqera.tower.cli.commands.studios.StopCmd;
28+
import io.seqera.tower.cli.commands.studios.ViewCmd;
2929
import picocli.CommandLine;
3030

3131
@CommandLine.Command(
3232
name = "studios",
33-
description = "Manage data studios.",
33+
description = "Manage studios.",
3434
subcommands = {
3535
ViewCmd.class,
3636
ListCmd.class,
@@ -43,5 +43,5 @@
4343
DeleteCmd.class,
4444
}
4545
)
46-
public class DataStudiosCmd extends AbstractRootCmd {
46+
public class StudiosCmd extends AbstractRootCmd {
4747
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import io.seqera.tower.ApiException;
2626
import io.seqera.tower.api.DefaultApi;
2727
import io.seqera.tower.cli.Tower;
28-
import io.seqera.tower.cli.commands.datastudios.DataLinkRefOptions;
28+
import io.seqera.tower.cli.commands.studios.DataLinkRefOptions;
2929
import io.seqera.tower.cli.commands.enums.OutputType;
3030
import io.seqera.tower.cli.exceptions.DataLinkNotFoundException;
3131
import io.seqera.tower.cli.exceptions.MultipleDataLinksFoundException;

src/main/java/io/seqera/tower/cli/commands/global/WorkspaceOptionalOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import picocli.CommandLine;
2121

2222
public class WorkspaceOptionalOptions {
23-
public static final String DESCRIPTION = "Workspace numeric identifier (TOWER_WORKSPACE_ID as default) or workspace reference as OrganizationName/WorkspaceName";
23+
public static final String DESCRIPTION = "Workspace numeric identifier (TOWER_WORKSPACE_ID as default) or workspace reference as OrganizationName/WorkspaceName.";
2424
public static final String DEFAULT_VALUE = "${TOWER_WORKSPACE_ID}";
2525

2626
@CommandLine.Option(names = {"-w", "--workspace"}, description = DESCRIPTION, defaultValue = DEFAULT_VALUE)

0 commit comments

Comments
 (0)