Search in sources :

Example 1 with OnboardCmd

use of com.google.copybara.onboard.OnboardCmd in project copybara by google.

the class Main method getCommands.

public ImmutableSet<CopybaraCmd> getCommands(ModuleSet moduleSet, ConfigLoaderProvider configLoaderProvider, JCommander jcommander) throws CommandLineException {
    ConfigValidator validator = getConfigValidator(moduleSet.getOptions());
    Consumer<Migration> consumer = getMigrationRanConsumer();
    return ImmutableSet.of(new MigrateCmd(validator, consumer, configLoaderProvider, moduleSet), new InfoCmd(configLoaderProvider, newInfoContextProvider()), new ValidateCmd(validator, consumer, configLoaderProvider), new HelpCmd(jcommander), new OnboardCmd(), new VersionCmd());
}
Also used : OnboardCmd(com.google.copybara.onboard.OnboardCmd) ConfigValidator(com.google.copybara.config.ConfigValidator) Migration(com.google.copybara.config.Migration)

Aggregations

ConfigValidator (com.google.copybara.config.ConfigValidator)1 Migration (com.google.copybara.config.Migration)1 OnboardCmd (com.google.copybara.onboard.OnboardCmd)1