-
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
5 changed files
with
42 additions
and
51 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
core/deployment/src/main/java/io/quarkus/deployment/console/QuarkusGroupCommand.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,20 @@ | ||
package io.quarkus.deployment.console; | ||
|
||
import org.aesh.command.CommandException; | ||
import org.aesh.command.CommandResult; | ||
import org.aesh.command.GroupCommand; | ||
import org.aesh.command.invocation.CommandInvocation; | ||
import org.aesh.command.option.Option; | ||
|
||
public abstract class QuarkusGroupCommand implements GroupCommand { | ||
|
||
@Option(shortName = 'h', hasValue = false, overrideRequired = true) | ||
public boolean help; | ||
|
||
@Override | ||
public CommandResult execute(CommandInvocation commandInvocation) throws CommandException, InterruptedException { | ||
commandInvocation.getShell().write(commandInvocation.getHelpInfo()); | ||
return CommandResult.SUCCESS; | ||
} | ||
|
||
} |
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
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