@Command(name = "decode", description = "Decodes messages from the journal") public class JournalDecode extends AbstractJournalCommand { @Arguments(description = "Range of message offsets to decode, e.g. single number 1234567, upper bound ..123456, lower bound 123456..., both 123456..123458") @Required private String rangeArg;
if (!(argumentsAnnotation.title().length == 1 && argumentsAnnotation.title()[0].equals(""))) { titles.addAll(Arrays.asList(argumentsAnnotation.title())); } else { titles.add(field.getName()); String description = argumentsAnnotation.description(); TypeConverterProvider provider = ParserUtil .createInstance(argumentsAnnotation.typeConverterProvider());
@Arguments( title = "config-file", description = "A file specifying configs for the KSQL Server, KSQL, "
@Arguments( title = "server", description = "The address of the Ksql server to connect to (ex: http://confluent.io:9098)")
public static class Delegate1 { @Arguments(description = "foo") public List<String> mainParams1 = new ArrayList<>(); }
public static class Delegate1 { @Arguments public List<String> mainParams1 = new ArrayList<>(); }
public static class Delegate2 { @Arguments public List<String> mainParams1 = new ArrayList<>(); }
public static class Delegate2 { @Arguments(description = "bar") public List<String> mainParams1 = new ArrayList<>(); }
/** * Error case if multiple unparsed (without a names attribute) arguments are defined. * * @author cbeust */ @Command(name = "ArgsMultipleUnparsed") public class ArgsMultipleUnparsed { @Arguments(description = "Bogus1") public String unparsed1; @Arguments(description = "Bogus2") public String unparsed2; }
public GlobalMetadata<T> metadata; @Arguments public List<String> arguments = new ArrayList<>();
public class AbstractGroupAnnotationCommand { @Arguments(description = "Patterns of files to be added") public List<String> patterns; @Option(name = "-i") public Boolean interactive = false; public AbstractGroupAnnotationCommand() { super(); } }
@Command(name = "ArgsMergeAddition") public class ArgsMergeAddition extends ArgsMergeParent { @Arguments public List<String> args = new ArrayList<>(); }
@Command(name = "ssh", description = "ssh to slot installation") public static class SshCommand extends GalaxyCommand { @Inject public final SlotFilter slotFilter = new SlotFilter(); @Arguments(description = "Command to execute on the remote host") public String command; @Override public String toString() { return toStringHelper(this) .add("slotFilter", slotFilter) .add("command", command) .toString(); } }
@Command(name = "upgrade", description = "Upgrade software in a slot") public static class UpgradeCommand extends GalaxyCommand { @Inject public final SlotFilter slotFilter = new SlotFilter(); @Arguments(description = "Version of the binary and/or @configuration") public final List<String> versions = new ArrayList<>(); @Override public String toString() { return toStringHelper(this) .add("slotFilter", slotFilter) .add("versions", versions) .add("globalOptions", globalOptions) .toString(); } }
@Command(name = "test", description = "TestCommand") public static class CommandTest { @Inject public HelpOption<CommandTest> helpOption; @Arguments(description = "Patterns of files to be added") public List<String> patterns; @Option(name = "-i", description = "Interactive add mode") public Boolean interactive = false; }
@Command(name = "add", description = "Add file contents to the index") public class CommandAdd { @Inject public CommandMain commandMain; @Arguments(description = "Patterns of files to be added") public List<String> patterns; @Option(name = "-i") public Boolean interactive = false; }
@Command(name = "decode", description = "Decodes messages from the journal") public class JournalDecode extends AbstractJournalCommand { @Arguments(description = "Range of message offsets to decode, e.g. single number 1234567, upper bound ..123456, lower bound 123456..., both 123456..123458") @Required private String rangeArg;
@Command(name = "partial") public class PartialUnannotated { @Option(name = "--kvp", arity = 2) public List<String> kvps = new ArrayList<>(); @Arguments public List<String> args = new ArrayList<>(); }
@Command(name = "add", description = "Adds a remote") public static class RemoteAdd extends GitCommand { @Option(name = "-t", description = "Track only a specific branch") public String branch; @Arguments(description = "Name and URL of remote repository to add", title={"name", "url"}) public List<String> remote; } }
@Command(name = "ArgsRequired") public class ArgsRequired { @Arguments(description = "List of files") @Required public List<String> parameters = new ArrayList<>(); }