Package org.apache.commons.cli2.builder

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


    private Option optForce;
    private Argument argJcrPath;
    private Argument argLocalPath;

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


    public String getShortDescription() {
        return "Display the differences between two paths.";
    }

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

                "  getRelated <jcr-path>\n"+
                "  test <repo-path>";
    }

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

    }

    private Argument argJcrPath;

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

    public String getShortDescription() {
        return "Send changes from your working copy to the repository.";
    }

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

    private Option optAdd;

    private Option optRemove;

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

    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

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

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

    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

                "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

TOP

Related Classes of org.apache.commons.cli2.builder.CommandBuilder

Copyright © 2018 www.massapicom. 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.