Examples of AeshCommandInvocation


Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                            .execute(
                                    commandInvocationServices
                                            .getCommandInvocationProvider(
                                                    commandInvocationProvider)
                                            .enhanceCommandInvocation(
                                                    new AeshCommandInvocation(
                                                            console,
                                                            output.getControlOperator())));
                } catch (CommandLineParserException e) {
                    getShell().out().println(e.getMessage());
                    result = CommandResult.FAILURE;
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                            .execute(
                                    commandInvocationServices
                                            .getCommandInvocationProvider(
                                                    commandInvocationProvider)
                                            .enhanceCommandInvocation(
                                                    new AeshCommandInvocation( console,
                                                            output.getControlOperator(), this)));
                } catch (CommandLineParserException e) {
                    getShell().out().println(e.getMessage());
                    result = CommandResult.FAILURE;
                } catch (CommandNotFoundException e) {
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                    //validate the command before execute
                    if(commandContainer.getParser().getCommand().getValidator() != null)
                        commandContainer.getParser().getCommand().getValidator().validate(commandContainer.getCommand());
                    result = commandContainer.getCommand().execute(
                            commandInvocationServices.getCommandInvocationProvider(commandInvocationProvider)
                                    .enhanceCommandInvocation(new AeshCommandInvocation(console, output.getControlOperator())));
                }
                catch (CommandLineParserException e) {
                    getShell().out().println(e.getMessage());
                    result = CommandResult.FAILURE;
                }
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                            .validate(commandContainer.getCommand());

                    result = commandContainer.getCommand().execute(
                            commandInvocationServices.getCommandInvocationProvider(
                                    commandInvocationProvider).enhanceCommandInvocation(
                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(),
                                         output.getPid(), this)));

                    if(result == CommandResult.SUCCESS && resultHandler != null)
                        resultHandler.onSuccess();
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                try (CommandContainer commandContainer = getCommand( aeshLine, output.getBuffer())) {
                    CommandContainerResult ccResult =
                            commandContainer.executeCommand(aeshLine, invocationProviders, getAeshContext(),
                            commandInvocationServices.getCommandInvocationProvider(
                                    commandInvocationProvider).enhanceCommandInvocation(
                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(),
                                         output.getPid(), this)));

                    result = ccResult.getCommandResult();
                    resultHandler = ccResult.getResultHandler();
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

            {
               CommandContainer exitCommand = registry.getCommand("exit", "");
               // print a new line so we exit nicely
               console.getShell().out().println();
               exitCommand.getCommand().execute(
                        new AeshCommandInvocation(ShellImpl.this.console, ControlOperator.NONE, null));
            }
            catch (CommandNotFoundException | IOException e)
            {
               log.log(Level.WARNING, "Error while trying to run exit", e);
            }
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                        .execute(
                            commandInvocationServices
                                .getCommandInvocationProvider(
                                    commandInvocationProvider)
                                .enhanceCommandInvocation(
                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(), this)));

                    if(result == CommandResult.SUCCESS)
                        resultHandler.onSuccess();
                    else
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

            {
               CommandContainer exitCommand = registry.getCommand("exit", "");
               // print a new line so we exit nicely
               console.getShell().out().println();
               exitCommand.getCommand().execute(
                        new AeshCommandInvocation((AeshConsoleImpl) ShellImpl.this.console, ControlOperator.NONE, 1,
                                 null));
            }
            catch (InterruptedException | CommandNotFoundException | IOException e)
            {
               log.log(Level.WARNING, "Error while trying to run exit", e);
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

            {
               CommandContainer exitCommand = registry.getCommand("exit", "");
               // print a new line so we exit nicely
               console.getShell().out().println();
               exitCommand.getCommand().execute(
                        new AeshCommandInvocation((AeshConsoleImpl) ShellImpl.this.console, ControlOperator.NONE, 1,
                                 null));
            }
            catch (InterruptedException | CommandNotFoundException | IOException e)
            {
               log.log(Level.WARNING, "Error while trying to run exit", e);
View Full Code Here

Examples of org.jboss.aesh.console.command.invocation.AeshCommandInvocation

                        .execute(
                            commandInvocationServices
                                .getCommandInvocationProvider(
                                    commandInvocationProvider)
                                .enhanceCommandInvocation(
                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(), this)));
                }
                catch (CommandLineParserException e) {
                    getShell().out().println(e.getMessage());
                    result = CommandResult.FAILURE;
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.