org.springframework.shell.core.CommandMarker Java Examples
The following examples show how to use
org.springframework.shell.core.CommandMarker.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LensJLineShellComponent.java From zeppelin with Apache License 2.0 | 6 votes |
@SuppressWarnings("rawtypes") public void afterPropertiesSet() { Map<String, CommandMarker> commands = BeanFactoryUtils.beansOfTypeIncludingAncestors( applicationContext, CommandMarker.class); for (CommandMarker command : commands.values()) { getSimpleParser().add(command); } Map<String, Converter> converters = BeanFactoryUtils.beansOfTypeIncludingAncestors( applicationContext, Converter.class); for (Converter<?> converter : converters.values()) { getSimpleParser().add(converter); } setHistorySize(commandLine.getHistorySize()); if (commandLine.getShellCommandsToExecute() != null) { setPrintBanner(false); } }
Example #2
Source File: Gfsh.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public void add(final CommandMarker command) { commandManager.add(command); }
Example #3
Source File: Gfsh.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public void add(final CommandMarker command) { commandManager.add(command); }
Example #4
Source File: ShellConfiguration.java From ambari-shell with Apache License 2.0 | 4 votes |
@Bean CommandMarker exitCommand() { return new ExitCommands(); }
Example #5
Source File: ShellConfiguration.java From ambari-shell with Apache License 2.0 | 4 votes |
@Bean CommandMarker versionCommands() { return new VersionCommands(); }
Example #6
Source File: ShellConfiguration.java From ambari-shell with Apache License 2.0 | 4 votes |
@Bean CommandMarker helpCommands() { return new HelpCommands(); }
Example #7
Source File: ShellConfiguration.java From ambari-shell with Apache License 2.0 | 4 votes |
@Bean CommandMarker scriptCommands() { return new ScriptCommands(); }