Hi
We have a Dropwizard application that does a lot of things in it's application.run() method. We moved a maintenance task into a command, so it can be run independently and without the full Jetty stack.
Now I noticed that application.run() is still executed
in EnvironmentCommand when running the the new command. What is the best way to avoid executing application.run() when running a command?
I also doubt if using a Command is a good way to extract functionality? We still need the Configuration, so running a plain java application does not help as well.
Best regards,
Aravindo