Expose default runner precedence

This commit is contained in:
Eric Bottard
2017-09-18 18:23:10 +02:00
parent 33b56132de
commit 8fcc203fe6

View File

@@ -29,6 +29,7 @@ import org.jline.utils.AttributedString;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.shell.ExitRequest;
import org.springframework.shell.Input;
import org.springframework.shell.InputProvider;
@@ -45,8 +46,11 @@ import org.springframework.shell.Shell;
*
* @author Eric Bottard
*/
@Order(DefaultShellApplicationRunner.PRECEDENCE)
public class DefaultShellApplicationRunner implements ApplicationRunner {
public static final int PRECEDENCE = 0;
private final LineReader lineReader;
private final PromptProvider promptProvider;