Examples of AeshCommandRegistryBuilder


Examples of org.jboss.aesh.console.command.AeshCommandRegistryBuilder

      this.commandManager = commandManager;

      Man manCommand = new Man();
      manCommand.setRegistry(this);
      // Use Aesh commands
      this.aeshCommandRegistry = new AeshCommandRegistryBuilder()
               .command(Grep.class)
               .command(Less.class)
               .command(More.class)
               .command(manCommand)
               .create();
View Full Code Here

Examples of org.jboss.aesh.console.command.AeshCommandRegistryBuilder

        settingsBuilder.readInputrc(false);
        settingsBuilder.logging(true);

        Man man = new Man();

        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(Less.class)
                .command(More.class)
                .command(man)
                .command(Harlem.class)
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

                        console.clearBufferAndDisplayPrompt();
                    }
                });
                */
        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(fooCommand, FooCommand.class)
                .command(LsCommand.class)
                .command(TestConsoleCommand.class)
                .create();
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

    public static void main(String[] args) {
        SettingsBuilder builder = new SettingsBuilder().logging(true);
        builder.enableMan(true);

        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(new GraphicsCommand())
                .create();
        AeshConsole aeshConsole = new AeshConsoleBuilder()
                .commandRegistry(registry)
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

                        console.clearBufferAndDisplayPrompt();
                    }
                });
                */
        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(fooCommand, FooCommand.class)
                .command(LsCommand.class)
                .command(TestConsoleCommand.class)
                .command(PromptCommand.class)
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

                        console.getShell().out().println("^C");
                        console.clearBufferAndDisplayPrompt();
                    }
                });
        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(fooCommand, FooCommand.class)
                .command(LsCommand.class)
                .command(TestConsoleCommand.class)
                .create();
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

    public static void main(String[] args) throws IOException {
        SettingsBuilder settingsBuilder = new SettingsBuilder();
        settingsBuilder.readInputrc(false);
        settingsBuilder.logging(true);

        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(Less.class)
                .command(More.class)
                .command(Harlem.class)
                .command(Clear.class)
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

                .create();
    }

    protected void prepare(Class<? extends Command>... commands) throws IOException {

        registry = new AeshCommandRegistryBuilder()
                .commands(commands)
                .create();

        AeshConsoleBuilder consoleBuilder = new AeshConsoleBuilder()
                .settings(settings)
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

      this.commandControllerFactory = addonRegistry.getServices(CommandControllerFactory.class).get();
      this.converterFactory = addonRegistry.getServices(ConverterFactory.class).get();

      // Use Aesh commands
      Man manCommand = new Man(new ForgeManProvider(shell, commandFactory));
      this.aeshCommandRegistry = new AeshCommandRegistryBuilder()
               .command(Grep.class)
               .command(Less.class)
               .command(More.class)
               .command(manCommand)
               .create();
View Full Code Here

Examples of org.jboss.aesh.console.command.registry.AeshCommandRegistryBuilder

                        console.clearBufferAndDisplayPrompt();
                    }
                });
                */
        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(fooCommand, FooCommand.class)
                .command(LsCommand.class)
                .command(TestConsoleCommand.class)
                .command(PromptCommand.class)
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.