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

io.redskap.swagger.brake.cli.options.handler.OutputPathHandler Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package io.redskap.swagger.brake.cli.options.handler;

import io.redskap.swagger.brake.cli.options.CliOptions;
import io.redskap.swagger.brake.runner.Options;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

@Component
public class OutputPathHandler implements CliOptionHandler {
    @Override
    public void handle(String propertyValue, Options options) {
        if (StringUtils.isNotBlank(propertyValue)) {
            options.setOutputFilePath(propertyValue);
        }
    }

    @Override
    public String getHandledPropertyName() {
        return CliOptions.OUTPUT_PATH;
    }

    @Override
    public String getHelpMessage() {
        return "Specifies the folder for the output. Only applicable in case of file output formats.";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy