Skip to content

Commit 489961d

Browse files
committed
[breaking] shell - using static classes for deps command's subcommands
1 parent 90d4ec1 commit 489961d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

restx-core-shell/src/main/java/restx/core/shell/AppShellCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public void run(RestxShell shell) throws Exception {
305305
"You can always install the deps later by using the `deps install` command\n" +
306306
"and run the app with the `app run` command")) {
307307
shell.println("restx> deps install");
308-
new DepsShellCommand().new InstallDepsCommandRunner().run(shell);
308+
new DepsShellCommand.InstallDepsCommandRunner().run(shell);
309309
shell.println("restx> app run");
310310
new RunAppCommandRunner(Collections.<String>emptyList()).run(shell);
311311
}
@@ -632,7 +632,7 @@ public void run(final RestxShell shell) throws Exception {
632632

633633
if (!DepsShellCommand.depsUpToDate(shell)) {
634634
shell.println("restx> deps install");
635-
new DepsShellCommand().new InstallDepsCommandRunner().run(shell);
635+
new DepsShellCommand.InstallDepsCommandRunner().run(shell);
636636
}
637637

638638
List<String> vmOptions = new ArrayList<>(this.vmOptions);

restx-core-shell/src/main/java/restx/core/shell/DepsShellCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Iterable<Completer> getCompleters() {
6767
new StringsCompleter("deps"), new StringsCompleter("install", "add")));
6868
}
6969

70-
public class InstallDepsCommandRunner implements ShellCommandRunner {
70+
public static class InstallDepsCommandRunner implements ShellCommandRunner {
7171

7272
@Override
7373
public void run(RestxShell shell) throws Exception {
@@ -111,7 +111,7 @@ private void installDepsFromModuleDescriptor(RestxShell shell, File mdFile) thro
111111
}
112112
}
113113

114-
class AddDepsCommandRunner implements ShellCommandRunner {
114+
static class AddDepsCommandRunner implements ShellCommandRunner {
115115
private final String scope;
116116
private Optional<List<String>> pluginIds;
117117

restx-specs-shell/src/main/java/restx/specs/shell/SpecsShellCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void run(final RestxShell shell) throws Exception {
104104

105105
if (!DepsShellCommand.depsUpToDate(shell)) {
106106
shell.println("restx> deps install");
107-
new DepsShellCommand().new InstallDepsCommandRunner().run(shell);
107+
new DepsShellCommand.InstallDepsCommandRunner().run(shell);
108108
}
109109

110110
new ShellAppRunner(appSettings, "restx.tests.RestxSpecTestServer",

0 commit comments

Comments
 (0)