Package org.apache.commons.cli2.builder

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


        return "Restore pristine working copy file (undo most local edits).";
    }


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


            .withName("localPath")
            .withDescription("local path (optional)")
            .withMinimum(0)
            .withMaximum(1)
            .create();
        return new CommandBuilder()
                .withName("checkout")
                .withName("co")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

    public String getShortDescription() {
        return "Remove files and directories from version control.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("delete")
                .withName("del")
                .withName("rm")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
View Full Code Here

    public boolean hasName(String s) {
        return false;
    }

    public Option getCommand() {
        return new CommandBuilder()
                .withName("Xdavex")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(new ArgumentBuilder()
View Full Code Here

    private Option optUpdate;
    private Option optNewer;
    private Option optNoOrdering;

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

            .withName("localPath")
            .withDescription("local path (optional)")
            .withMinimum(0)
            .withMaximum(1)
            .create();
        return new CommandBuilder()
                .withName("checkout")
                .withName("co")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

    public boolean hasName(String s) {
        return false;
    }

    public Option getCommand() {
        return new CommandBuilder()
                .withName("Xjcrlog")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(new CommandBuilder()
                                .withName("sysout")
                                .withDescription("enable logging to the stdout")
                                .create())
                        .withOption(new ArgumentBuilder()
                                .withName("file=<file>")
                                .withDescription("log to the specified file")
                                .withMinimum(1)
                                .withMaximum(1)
                                .create())
                        .withOption(new CommandBuilder()
                                .withName("return")
                                .withDescription("enable logging of return values")
                                .create())
                        .withOption(new CommandBuilder()
                                .withName("caller")
                                .withDescription("enable logging of the caller")
                                .create())
                        .withOption(new CommandBuilder()
                                .withName("exception")
                                .withDescription("enable logging of exceptions")
                                .create())
                        .withOption(new CommandBuilder()
                                .withName("stream")
                                .withDescription("enable logging of streams")
                                .create())
                        /*
                        .withOption(new CommandBuilder()
View Full Code Here

        return "Put files and directories under version control, scheduling " +
               "them for addition to repository. They will be added in next commit.";
    }

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

                "action would be performed by an update operation.";
    }


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

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

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("put")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                                /*
 
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.