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

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

The newest version!
package technology.dice.dicewhere.downloader.picocli.commands;

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,
      DownloadIpInfoSiteCommand.class,
      DownloadIpInfoS3Command.class
    },
    synopsisSubcommandLabel = "COMMAND")
public class DownloadCommand implements Callable {
  @Spec CommandSpec spec;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy