Hi all, I am trying to use the GoGo shell's CommandProcessor to execute commands via a rest-like interface. Using older versions of the shell, this used to work. But after updating to the latest version (runtime 1.1.4) this doesn't work anymore.
Strangely enough, the DependencyManager commands do work, but the GoGo Commands don't. Looking in the source, the difference I can see is that the DM commands use System.out.println, while the GoGo Commands return the output in each command method. Is there something that I am missing? Creating a trivial example already shows this: ------------ @Component(provides = TestShell.class) @Property(name = CommandProcessor.COMMAND_SCOPE, value = "test") @Property(name = CommandProcessor.COMMAND_FUNCTION, value = {"execute"}) public class TestShell { @ServiceDependency private volatile CommandProcessor commandProcessor; public void execute(String command) throws Exception { CommandSession session = commandProcessor.createSession(new FileInputStream(FileDescriptor.in), new FileOutputStream(FileDescriptor.out), new FileOutputStream(FileDescriptor.err)); session.execute(command); session.close(); } } ------------ Thanks in advance! -- Met vriendelijke groet, Alexander Broekhuis