Examples of CommandBuilder


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

    public String getShortDescription() {
        return "print the current work path";
    }

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

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

    public String getShortDescription() {
        return "change the execution context.";
    }

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

Examples of org.arquillian.spacelift.process.CommandBuilder

    private CommandTool getJBossCliTool() {

        if (SystemUtils.IS_OS_WINDOWS) {
            return Tasks.prepare(CommandTool.class)
                .command(new CommandBuilder("cmd.exe"))
                .parameters("/C", new File(environment.get("JBOSS_HOME"), "/bin/jboss-cli.bat").getAbsolutePath())
                .addEnvironment(environment);
        } else if (SystemUtils.IS_OS_LINUX || SystemUtils.IS_OS_MAC_OSX) {
            return Tasks.prepare(CommandTool.class)
                .command(new CommandBuilder(new File(environment.get("JBOSS_HOME"), "/bin/jboss-cli.sh").getAbsolutePath()))
                .addEnvironment(environment);
        } else {
            throw new IllegalStateException("Unrecognized operating system.");
        }
    }
View Full Code Here

Examples of org.jboss.aesh.cl.builder.CommandBuilder

*/
public class AeshExample {

    public static void main(String[] args) throws CommandLineParserException {

        ProcessedCommand fooCommand = new CommandBuilder()
                .name("foo")
                .description("fooing")
                .addOption(new OptionBuilder()
                        .name("bar")
                        .addDefaultValue("en 1 0")
View Full Code Here

Examples of org.jboss.aesh.cl.builder.CommandBuilder

*/
public class AeshExample {

    public static void main(String[] args) throws CommandLineParserException {

        ProcessedCommand fooCommand = new CommandBuilder()
                .name("foo")
                .description("fooing")
                .addOption(new OptionBuilder()
                        .name("bar")
                        .addDefaultValue("en 1 0")
View Full Code Here

Examples of org.jboss.aesh.cl.builder.CommandBuilder

*/
public class AeshExample {

    public static void main(String[] args) throws CommandLineParserException {

        ProcessedCommand fooCommand = new CommandBuilder()
                .name("foo")
                .description("fooing")
                .addOption(new OptionBuilder()
                        .name("bar")
                        .addDefaultValue("en 1 0")
View Full Code Here

Examples of org.jboss.aesh.cl.builder.CommandBuilder

*/
public class AeshExample {

    public static void main(String[] args) throws CommandLineParserException {

        ProcessedCommand fooCommand = new CommandBuilder()
                .name("foo")
                .description("fooing")
                .addOption(new OptionBuilder()
                        .name("bar")
                        .addDefaultValue("en 1 0")
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.callbacks.CommandBuilder

    }

    private void loadContent() {
        enumService.call( getModelSuccessCallback(),
                          new CommandDrivenErrorCallback( view,
                                                          new CommandBuilder().addNoSuchFileException( view,
                                                                                                       multiPage,
                                                                                                       menus ).build()
                          ) ).loadContent( path );
    }
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.callbacks.CommandBuilder

    }

    private void loadContent() {
        enumService.call( getModelSuccessCallback(),
                          new CommandDrivenErrorCallback( view,
                                                          new CommandBuilder().addNoSuchFileException( view,
                                                                                                       multiPage ).build() ) ).loadContent( path );
    }
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.callbacks.CommandBuilder

    }

    private void loadContent() {
        scoreCardEditorService.call( getModelSuccessCallback(),
                                     new CommandDrivenErrorCallback( view,
                                                                     new CommandBuilder().addNoSuchFileException( view,
                                                                                                                  multiPage,
                                                                                                                  menus ).build()
                                     )
                                   ).loadContent( path );
    }
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.