From ed3fc06d811415063161bd4023e3978fa2a26d90 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 31 Mar 2014 17:28:14 -0700 Subject: [PATCH] Remove non-working cli `--edit` option Fixes gh-611 --- .../springframework/boot/cli/command/run/RunCommand.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java index 859f26bd78..ec29f431ad 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java @@ -16,7 +16,6 @@ package org.springframework.boot.cli.command.run; -import java.awt.Desktop; import java.io.File; import java.util.List; import java.util.logging.Level; @@ -64,8 +63,6 @@ public class RunCommand extends OptionParsingCommand { private OptionSpec watchOption; - private OptionSpec editOption; - private OptionSpec verboseOption; private OptionSpec quietOption; @@ -75,8 +72,6 @@ public class RunCommand extends OptionParsingCommand { @Override protected void doOptions() { this.watchOption = option("watch", "Watch the specified file for changes"); - this.editOption = option(asList("edit", "e"), - "Open the file with the default system editor"); this.verboseOption = option(asList("verbose", "v"), "Verbose logging of dependency resolution"); this.quietOption = option(asList("quiet", "q"), "Quiet logging"); @@ -99,10 +94,6 @@ public class RunCommand extends OptionParsingCommand { SourceOptions sourceOptions = new SourceOptions(options); - if (options.has(this.editOption)) { - Desktop.getDesktop().edit(new File(sourceOptions.getSources().get(0))); - } - List repositoryConfiguration = RepositoryConfigurationFactory .createDefaultRepositoryConfiguration(); repositoryConfiguration.add(0, new RepositoryConfiguration("local", new File(