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

technology.dice.dicewhere.downloader.picocli.commandssssss.DownloadCommand Maven / Gradle / Ivy

package technology.dice.dicewhere.downloader.picocli.commandssssss;

import java.util.concurrent.Callable;
import picocli.CommandLine.Command;
import picocli.CommandLine.HelpCommand;
import picocli.CommandLine.Model.CommandSpec;
import picocli.CommandLine.ParameterException;
import picocli.CommandLine.Spec;
import technology.dice.dicewhere.downloader.picocli.ResourceVersionProvider;

@Command(
    name = "dice-where-downloader",
    mixinStandardHelpOptions = true,
    showDefaultValues = true,
    versionProvider = ResourceVersionProvider.class,
    subcommands = {HelpCommand.class, DownloadMaxmindSiteCommand.class, DownloadMaxmindS3Command.class},
    synopsisSubcommandLabel = "COMMAND")
public class DownloadCommand implements Callable {
  @Spec CommandSpec spec;

  @Override
  public Integer call() throws Exception {
    throw new ParameterException(spec.commandLine(), "Missing required command");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy