Package org.jboss.forge.addon.shell.aesh

Examples of org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry


         }
      }).create();
      this.console = new AeshConsoleBuilder()
               .prompt(createPrompt())
               .settings(newSettings)
               .commandRegistry(new ForgeCommandRegistry(this, commandManager))
               .manProvider(new ForgeManProvider(this, commandManager))
               .create();
      this.output = new ShellUIOutputImpl(console);
      this.console.start();
   }
View Full Code Here


         {
            console.getShell().out().println("^C");
            console.clearBufferAndDisplayPrompt();
         }
      }).create();
      final ForgeCommandRegistry registry = new ForgeCommandRegistry(this, commandManager, commandFactory,
               commandManager
                        .getConverterFactory());
      this.console = new AeshConsoleBuilder()
               .prompt(createPrompt())
               .settings(newSettings)
View Full Code Here

      // Set the paths for the Aesh history, alias and export files.
      File forgeHome = OperatingSystemUtils.getUserForgeDir();
      File history = new File(forgeHome, "history");
      File alias = new File(forgeHome, "alias");
      File export = new File(forgeHome, "export");
      final ForgeCommandRegistry registry =
               new ForgeCommandRegistry(this, addonRegistry);
      SettingsBuilder newSettings = new SettingsBuilder(settings)
               .historyFile(history)
               .aliasFile(alias)
               .exportFile(export)
               .interruptHook(new ForgeInterruptHook(registry));
View Full Code Here

            AddonRegistry addonRegistry)
   {
      this.currentResource = initialResource;
      this.addonRegistry = addonRegistry;
      this.console = new AeshConsoleBuilder().prompt(createPrompt()).settings(settings)
               .commandRegistry(new ForgeCommandRegistry(this, commandManager))
               .create();
      this.output = new ShellUIOutputImpl(console);
      this.console.start();
   }
View Full Code Here

      // Set the paths for the Aesh history, alias and export files.
      File forgeHome = OperatingSystemUtils.getUserForgeDir();
      File history = new File(forgeHome, "history");
      File alias = new File(forgeHome, "alias");
      File export = new File(forgeHome, "export");
      final ForgeCommandRegistry registry =
               new ForgeCommandRegistry(this, addonRegistry);
      // Register DidYouMeanListener
      commandNotFoundListeners.add(new DidYouMeanCommandNotFoundListener(registry));
      SettingsBuilder newSettings = new SettingsBuilder(settings)
               .historyFile(history)
               .aliasFile(alias)
View Full Code Here

      // Set the paths for the Aesh history, alias and export files.
      File forgeHome = OperatingSystemUtils.getUserForgeDir();
      File history = new File(forgeHome, "history");
      File alias = new File(forgeHome, "alias");
      File export = new File(forgeHome, "export");
      final ForgeCommandRegistry registry =
               new ForgeCommandRegistry(furnace, this, addonRegistry);
      // Register DidYouMeanListener
      commandNotFoundListeners.add(new DidYouMeanCommandNotFoundListener(registry));
      SettingsBuilder newSettings = new SettingsBuilder(settings)
               .historyFile(history)
               .aliasFile(alias)
View Full Code Here

      }).create();
      this.console = new AeshConsoleBuilder()
               .prompt(createPrompt())
               .settings(newSettings)
               .commandRegistry(
                        new ForgeCommandRegistry(this, commandManager, commandFactory, commandManager
                                 .getConverterFactory()))
               .manProvider(new ForgeManProvider(this, commandManager))
               .create();
      this.output = new ShellUIOutputImpl(console);
      this.console.start();
View Full Code Here

      // Set the paths for the Aesh history, alias and export files.
      File forgeHome = OperatingSystemUtils.getUserForgeDir();
      File history = new File(forgeHome, "history");
      File alias = new File(forgeHome, "alias");
      File export = new File(forgeHome, "export");
      final ForgeCommandRegistry registry =
               new ForgeCommandRegistry(this, addonRegistry);
      SettingsBuilder newSettings = new SettingsBuilder(settings)
               .historyFile(history)
               .aliasFile(alias)
               .exportFile(export)
               .enableExport(true)
View Full Code Here

      // Set the paths for the Aesh history, alias and export files.
      File forgeHome = OperatingSystemUtils.getUserForgeDir();
      File history = new File(forgeHome, "history");
      File alias = new File(forgeHome, "alias");
      File export = new File(forgeHome, "export");
      final ForgeCommandRegistry registry =
               new ForgeCommandRegistry(this, addonRegistry);
      Settings newSettings = new SettingsBuilder(settings)
               .historyFile(history)
               .aliasFile(alias)
               .exportFile(export)
               .interruptHook(new ForgeInterruptHook(registry)).create();
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry

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.