嵌入groovy.lang.GroovyShell&;缺少指挥支持

嵌入groovy.lang.GroovyShell&;缺少指挥支持,groovy,groovyshell,Groovy,Groovyshell,浏览Groovy源代码时,似乎有几个单独的shell: groovy.lang.GroovyShell groovy.ui.InteractiveShell IShell类似乎有很多可用的命令,如quit、help、history等,但在g.l.GroovyShell中没有一个是现成的 我应该用哪一种 是否可以将i-s命令安装到新的shell中 InteractiveShell也会加载JLine,这意味着它只能从命令行真正工作 据我所知,我将不得不从InteractiveShell中复制

浏览Groovy源代码时,似乎有几个单独的shell:

  • groovy.lang.GroovyShell
  • groovy.ui.InteractiveShell
IShell类似乎有很多可用的命令,如quit、help、history等,但在
g.l.GroovyShell
中没有一个是现成的

  • 我应该用哪一种
  • 是否可以将i-s命令安装到新的shell中
  • InteractiveShell
    也会加载
    JLine
    ,这意味着它只能从命令行真正工作

据我所知,我将不得不从
InteractiveShell

中复制一些东西,大多数人使用GroovyShell,但请澄清您的用例。