test_class.declarator: logPath = Util.asFile(Util.resource("jstack/deadlock.log")).getAbsolutePath()
test_class.modifier: private final
test_class.original_string: private final String logPath = Util.asFile(Util.resource("jstack/deadlock.log")).getAbsolutePath();
test_class.type: String
test_class.var_name: logPath
test_class.file: cli/src/test/java/com/github/olivergondza/dumpling/cli/GroovyshCommandTest.java
test_class.identifier: GroovyshCommandTest
test_class.superclass: extends AbstractCliTest
test_case.body: @Test
      public void  hasHelp() {
          run("help", "groovysh");
          assertThat(out.toString(), containsString("All Dumpling DSL classes and methods are imported"));
      }
test_case.class_method_signature: GroovyshCommandTest.hasHelp()
test_case.full_signature: @Test public void hasHelp()
test_case.identifier: hasHelp
test_case.invocations: run assertThat toString containsString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void hasHelp()
focal_class.declarator: CONFIG = new InterpretterConfig()
focal_class.modifier: private static final
focal_class.original_string: private static final InterpretterConfig CONFIG = new InterpretterConfig();
focal_class.type: InterpretterConfig
focal_class.var_name: CONFIG
focal_class.declarator: runtime
focal_class.modifier: @Option(name = "-i", aliases = {"--in"}, usage = "Input for process runtime")
      private
focal_class.original_string: @Option(name = "-i", aliases = {"--in"}, usage = "Input for process runtime")
      private ProcessRuntime<?, ?, ?> runtime;
focal_class.type: ProcessRuntime<?, ?, ?>
focal_class.var_name: runtime
focal_class.declarator: args = new ArrayList<String>()
focal_class.modifier: @Argument(metaVar = "SCRIPT_ARGS", multiValued = true, usage = "Arguments to be passed to the script")
      private @Nonnull
focal_class.original_string: @Argument(metaVar = "SCRIPT_ARGS", multiValued = true, usage = "Arguments to be passed to the script")
      private @Nonnull List<String> args = new ArrayList<String>();
focal_class.type: List<String>
focal_class.var_name: args
focal_class.file: cli/src/main/java/com/github/olivergondza/dumpling/cli/GroovyshCommand.java
focal_class.identifier: GroovyshCommand
focal_class.interfaces: implements CliCommand
focal_class.class_method_signature: GroovyshCommand.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: GroovyshCommand.getDescription()
focal_class.full_signature: @Override public String getDescription()
focal_class.identifier: getDescription
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDescription()
focal_class.class_method_signature: GroovyshCommand.run(@Nonnull ProcessStream process)
focal_class.full_signature: @Override public int run(@Nonnull ProcessStream process)
focal_class.identifier: run
focal_class.modifiers: @Override public
focal_class.parameters: (@Nonnull ProcessStream process)
focal_class.return: int
focal_class.signature: int run(@Nonnull ProcessStream process)
focal_class.class_method_signature: GroovyshCommand.getImports()
focal_class.full_signature: private Collection<String> getImports()
focal_class.identifier: getImports
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getImports()
focal_class.class_method_signature: GroovyshCommand.configureHistory(final ProcessStream process, final Groovysh groovysh)
focal_class.full_signature: private void configureHistory(final ProcessStream process, final Groovysh groovysh)
focal_class.identifier: configureHistory
focal_class.modifiers: private
focal_class.parameters: (final ProcessStream process, final Groovysh groovysh)
focal_class.return: void
focal_class.signature: void configureHistory(final ProcessStream process, final Groovysh groovysh)
focal_method.body: @Override
      public int run(@Nonnull ProcessStream process) throws CmdLineException {
  
          IO io = new IO(new BufferedInputStream(process.in()), process.out(), process.err());
  
          // Do not use .inputrc as jline does not interpret it correctly: https://github.com/jline/jline2/issues/51
          System.setProperty("jline.inputrc", "~/.no.inputrc");
  
          CONFIG.setupDecorateMethods();
          Groovysh groovysh = new Groovysh(this.getClass().getClassLoader(), CONFIG.getDefaultBinding(process, args, runtime), io);
  
          groovysh.getImports().addAll(getImports());
  
          configureHistory(process, groovysh);
  
          return groovysh.run("");
      }
focal_method.class_method_signature: GroovyshCommand.run(@Nonnull ProcessStream process)
focal_method.full_signature: @Override public int run(@Nonnull ProcessStream process)
focal_method.identifier: run
focal_method.invocations: in out err setProperty setupDecorateMethods getClassLoader getClass getDefaultBinding addAll getImports getImports configureHistory run
focal_method.modifiers: @Override public
focal_method.parameters: (@Nonnull ProcessStream process)
focal_method.return: int
focal_method.signature: int run(@Nonnull ProcessStream process)