All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.qatools.allure.command.AllureVersion Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
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