Skip to content

Commit ed3fc06

Browse files
author
Phillip Webb
committed
Remove non-working cli --edit option
Fixes gh-611
1 parent 35b1a59 commit ed3fc06

File tree

1 file changed

+0
-9
lines changed
  • spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run

1 file changed

+0
-9
lines changed

spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.boot.cli.command.run;
1818

19-
import java.awt.Desktop;
2019
import java.io.File;
2120
import java.util.List;
2221
import java.util.logging.Level;
@@ -64,8 +63,6 @@ private static class RunOptionHandler extends CompilerOptionHandler {
6463

6564
private OptionSpec<Void> watchOption;
6665

67-
private OptionSpec<Void> editOption;
68-
6966
private OptionSpec<Void> verboseOption;
7067

7168
private OptionSpec<Void> quietOption;
@@ -75,8 +72,6 @@ private static class RunOptionHandler extends CompilerOptionHandler {
7572
@Override
7673
protected void doOptions() {
7774
this.watchOption = option("watch", "Watch the specified file for changes");
78-
this.editOption = option(asList("edit", "e"),
79-
"Open the file with the default system editor");
8075
this.verboseOption = option(asList("verbose", "v"),
8176
"Verbose logging of dependency resolution");
8277
this.quietOption = option(asList("quiet", "q"), "Quiet logging");
@@ -99,10 +94,6 @@ protected synchronized void run(OptionSet options) throws Exception {
9994

10095
SourceOptions sourceOptions = new SourceOptions(options);
10196

102-
if (options.has(this.editOption)) {
103-
Desktop.getDesktop().edit(new File(sourceOptions.getSources().get(0)));
104-
}
105-
10697
List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
10798
.createDefaultRepositoryConfiguration();
10899
repositoryConfiguration.add(0, new RepositoryConfiguration("local", new File(

0 commit comments

Comments
 (0)