

package org.apache.druid.cli;

import com.github.rvesse.airline.annotations.Command;
import io.netty.util.SuppressForbidden;
import org.apache.druid.initialization.DruidModule;
import org.apache.druid.initialization.Initialization;
import org.apache.druid.server.StatusResource;

@Command(
    name = "version",
    description = "Returns Druid version information"
)
public class Version implements Runnable
{
  @Override
  @SuppressForbidden(reason = "System#out")
  public void run()
  {
    System.out.println(new StatusResource.Status(Initialization.getLoadedImplementations(DruidModule.class)));
  }
}
