-
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.
Merge pull request #22387 from stuartwdouglas/22345
Add ability to change included tags
- Loading branch information
Showing
8 changed files
with
271 additions
and
10 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
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
26 changes: 26 additions & 0 deletions
26
core/deployment/src/main/java/io/quarkus/deployment/console/QuarkusCommand.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.quarkus.deployment.console; | ||
|
||
import org.aesh.command.Command; | ||
import org.aesh.command.CommandException; | ||
import org.aesh.command.CommandResult; | ||
import org.aesh.command.invocation.CommandInvocation; | ||
import org.aesh.command.option.Option; | ||
|
||
import io.quarkus.dev.console.QuarkusConsole; | ||
|
||
public abstract class QuarkusCommand implements Command { | ||
|
||
@Option(shortName = 'd', hasValue = false) | ||
public boolean done; | ||
|
||
@Override | ||
public CommandResult execute(CommandInvocation commandInvocation) throws CommandException, InterruptedException { | ||
var result = doExecute(commandInvocation); | ||
if (done) { | ||
QuarkusConsole.INSTANCE.exitCliMode(); | ||
} | ||
return result; | ||
} | ||
|
||
public abstract CommandResult doExecute(CommandInvocation commandInvocation) throws CommandException, InterruptedException; | ||
} |
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
17 changes: 17 additions & 0 deletions
17
core/devmode-spi/src/main/java/io/quarkus/dev/testing/KnownTags.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.quarkus.dev.testing; | ||
|
||
import java.util.Collections; | ||
import java.util.Set; | ||
|
||
public class KnownTags { | ||
|
||
private static volatile Set<String> knownTags = Set.of(); | ||
|
||
public static Set<String> getKnownTags() { | ||
return knownTags; | ||
} | ||
|
||
public static void setKnownTags(Set<String> knownTag) { | ||
knownTags = Collections.unmodifiableSet(knownTag); | ||
} | ||
} |
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