Package org.jboss.aesh.extensions.manual.aesh

Examples of org.jboss.aesh.extensions.manual.aesh.Man


   public ForgeCommandRegistry(ShellImpl shell, CommandManager commandManager)
   {
      this.shell = shell;
      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)
View Full Code Here


    public static void main(String[] args) throws IOException {
        SettingsBuilder settingsBuilder = new SettingsBuilder();
        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)
                .command(GroovyCommand.class)
                .command(Ls.class)
                .command(Grep.class)
                .create();
        //the man command need access to the registry
        man.setRegistry(registry);

        AeshConsole aeshConsole = new AeshConsoleBuilder()
                .commandRegistry(registry)
                .settings(settingsBuilder.create())
                .prompt(new Prompt("[aesh@extensions]$ "))
View Full Code Here

TOP

Related Classes of org.jboss.aesh.extensions.manual.aesh.Man

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.