io.redskap.swagger.brake.SwaggerBrakeMain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-brake Show documentation
Show all versions of swagger-brake Show documentation
Swagger contract checker for breaking API changes
package io.redskap.swagger.brake;
import io.redskap.swagger.brake.cli.Cli;
import io.redskap.swagger.brake.cli.CliConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.SimpleCommandLinePropertySource;
public class SwaggerBrakeMain {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CliConfiguration.class);
ConfigurableEnvironment environment = context.getEnvironment();
environment.getPropertySources().addFirst(new SimpleCommandLinePropertySource(args));
Cli cli = context.getBean(Cli.class);
cli.start();
}
}