Examples of CommandBuilder


Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Option optConfigFile;
    private Option optFilterFile;
    private Argument argPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("mount")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optForce = new DefaultOptionBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Disconnect from a repository";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("disconnect")
                .withDescription(getShortDescription())
                .create();
    }
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Displays information about a local file.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("info")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(OPT_VERBOSE)
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

                "Vault filesystem at <jcrl-path>. Both paths can be relative " +
                "to their respective CWDs.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("import")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(OPT_VERBOSE)
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Option optRecursive;
    private Argument argPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("rm")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optRecursive = new DefaultOptionBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Debug.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("vltdebug")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(OPT_VERBOSE)
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Option optConfig;

    private Option optFilter;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("dump")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optConfig = new DefaultOptionBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Argument argJcrPath;

    private Option optKeepChanges;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("refresh")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optKeepChanges = new DefaultOptionBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    }

    private Argument argJcrPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("cat")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(argJcrPath = new ArgumentBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

public class TestSubHelp {

    public static void main(String[] args) throws Exception {
        final DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
        final ArgumentBuilder abuilder = new ArgumentBuilder();
        final CommandBuilder cbuilder = new CommandBuilder();
        final GroupBuilder gbuilder = new GroupBuilder();

        CmdSet set = new CmdSet();

        CliHelpFormatter hf = CliHelpFormatter.create();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.