
ru.yandex.qatools.allure.command.AllureVersion Maven / Gradle / Ivy
package ru.yandex.qatools.allure.command;
import io.airlift.command.Command;
import org.slf4j.cal10n.LocLogger;
import ru.yandex.qatools.allure.logging.Messages;
import static ru.yandex.qatools.allure.logging.LogManager.getLogger;
/**
* @author Artem Eroshenko
*/
@Command(name = "version", description = "Display version")
public class AllureVersion extends AbstractCommand {
private static final LocLogger LOGGER = getLogger(ReportOpen.class);
/**
* {@inheritDoc}
*/
@Override
protected void runUnsafe() {
String toolVersion = getClass().getPackage().getImplementationVersion();
LOGGER.info(Messages.COMMAND_VERSION_INFO, toolVersion);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy