-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
757 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 20 additions & 10 deletions
30
core/deployment/src/main/java/io/quarkus/deployment/console/ConsoleConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
package io.quarkus.deployment.console; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import java.util.Optional; | ||
|
||
@ConfigRoot | ||
public class ConsoleConfig { | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
@ConfigMapping(prefix = "quarkus.console") | ||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME) | ||
public interface ConsoleConfig { | ||
/** | ||
* If test results and status should be displayed in the console. | ||
* <p> | ||
* If this is false results can still be viewed in the dev console. | ||
*/ | ||
@ConfigItem(defaultValue = "true") | ||
public boolean enabled; | ||
@WithDefault("true") | ||
boolean enabled(); | ||
|
||
/** | ||
* Disables the ability to enter input on the console. | ||
*/ | ||
@ConfigItem(defaultValue = "false") | ||
public boolean disableInput; | ||
@WithDefault("false") | ||
boolean disableInput(); | ||
|
||
/** | ||
* Disable the testing status/prompt message at the bottom of the console | ||
* and log these messages to STDOUT instead. | ||
* <p> | ||
* Use this option if your terminal does not support ANSI escape sequences. | ||
*/ | ||
@ConfigItem(defaultValue = "false") | ||
public boolean basic; | ||
@WithDefault("false") | ||
boolean basic(); | ||
|
||
/** | ||
* If color should be enabled or disabled. | ||
* <p> | ||
* If this is not present then an attempt will be made to guess if the terminal supports color | ||
*/ | ||
Optional<Boolean> color(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.