Class SubshellCommand

java.lang.Object
org.dellroad.jct.core.simple.AbstractSimpleCommand
org.dellroad.jct.core.simple.command.SubshellCommand
All Implemented Interfaces:
SimpleCommand
Direct Known Subclasses:
JShellCommand

public class SubshellCommand extends AbstractSimpleCommand
A command that fires up subshell sessions.

This command only works within shell sessions.

  • Field Details

    • shell

      protected final Shell shell
  • Constructor Details

    • SubshellCommand

      public SubshellCommand(Shell shell, String usage, String summary, String detail)
      Constructor.
      Parameters:
      shell - the subshell, which creates the underlying subshell sessions
      usage - usage string, or null if command takes no arguments
      summary - help summary
      detail - help detail
      Throws:
      IllegalArgumentException - if shell, summary or detail is null
  • Method Details