Hi dmadunic, thanks for you project share. I have a problem if you can help.
If I create a new Command that autowired InputReader, I got this error below:
The dependencies of some of the beans in the application context form a cycle:
testCommand (field com.yiwu.command.shell.InputReader com.yiwu.command.commands.TestCommand.inputReader)
┌─────┐
| inputReader defined in class path resource [com/yiwu/command/config/SpringShellConfig.class]
↑ ↓
| org.springframework.shell.jline.JLineShellAutoConfiguration (field private org.springframework.shell.Shell org.springframework.shell.jline.JLineShellAutoConfiguration.shell)
↑ ↓
| shell
↑ ↓
| userCommand (field com.yiwu.command.shell.InputReader com.yiwu.command.commands.UserCommand.inputReader)
``
cat TestCommand
Hi dmadunic, thanks for you project share. I have a problem if you can help. If I create a new Command that autowired InputReader, I got this error below:
@ShellComponent public class TestCommand {
}