Package org.apache.commons.cli2.builder

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


    public String getExample() {
        return "$ ls -al";
    }

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


    public String getShortDescription() {
        return "change the current work directory";
    }

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

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

    public String getShortDescription() {
        return "Logout from the repository.";
    }

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

    public String getShortDescription() {
        return "Print the properties on files or directories.";
    }

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

                "  the file. A mimetype beginning with 'text/' (or an absent mimetype)\n" +
                "  is treated as text. Anything else is treated as binary.";
    }

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

        fmtFlag |= cl.hasOption(optLong) ? F_FLAG_LONG : 0;
        return fmtFlag;
    }

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

                "Example:\n" +
                "  vlt export http://localhost:4502/crx /apps/geometrixx myproject";
    }

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

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

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


    private Argument argJcrPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("save")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(argJcrPath = new ArgumentBuilder()
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.