clebertsuconic commented on code in PR #4565:
URL: https://github.com/apache/activemq-artemis/pull/4565#discussion_r1277673400


##########
artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java:
##########
@@ -87,9 +68,29 @@
  * Notice that this class should not use any logging as it's part of the 
bootstrap and using logging here could
  *        disrupt the order of bootstrapping on certain components (e.g. JMX 
being started from log4j)
  */
-public class Artemis {
+@Command(name = "artemis", description = "ActiveMQ Artemis Command Line")
+public class Artemis implements Runnable {
+
+   CommandLine commandLine;
+
+   public CommandLine getCommandLine() {
+      return commandLine;
+   }
+
+   public Artemis setCommandLine(CommandLine commandLine) {
+      this.commandLine = commandLine;
+      return this;
+   }
+
+   @Override
+   public void run() {
+      // We are running the shell by default.
+      // if you type ./artemis we will go straight to the shell
+      Shell.runShell();
+   }
 
    public static void main(String... args) throws Exception {
+      System.out.println("Line::" + getNameFromBanner());

Review Comment:
   yeah!! lol thank you



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to