use of org.phoenicis.library.ShortcutRunner in project POL-POM-5 by PhoenicisOrg.
the class CLIController method runApp.
@Option
@LongSwitch("run")
@ShortSwitch("r")
@AllAvailableArguments
public void runApp(List<String> arguments) {
final String shortcutName = arguments.get(0);
arguments.remove(0);
final ShortcutRunner shortcutRunner = applicationContext.getBean(ShortcutRunner.class);
shortcutRunner.run(shortcutName, arguments, e -> {
throw new IllegalStateException(e);
});
}
use of org.phoenicis.library.ShortcutRunner in project phoenicis by PhoenicisOrg.
the class CLIController method runApp.
@Option
@LongSwitch("run")
@ShortSwitch("r")
@AllAvailableArguments
public void runApp(List<String> arguments) {
final String shortcutName = arguments.get(0);
arguments.remove(0);
final ShortcutRunner shortcutRunner = applicationContext.getBean(ShortcutRunner.class);
shortcutRunner.run(shortcutName, arguments, e -> {
throw new IllegalStateException(e);
});
}
use of org.phoenicis.library.ShortcutRunner in project POL-POM-5 by PlayOnLinux.
the class CLIController method runApp.
@Option
@LongSwitch("run")
@ShortSwitch("r")
@AllAvailableArguments
public void runApp(List<String> arguments) {
final String shortcutName = arguments.get(0);
arguments.remove(0);
final ShortcutRunner shortcutRunner = applicationContext.getBean(ShortcutRunner.class);
if (!shortcutRunner.shortcutExists(shortcutName)) {
LOGGER.error("Requested shortcut does not exist: " + shortcutName);
return;
}
shortcutRunner.run(shortcutName, arguments, e -> {
throw new IllegalStateException(e);
});
}
Aggregations