Interface ShellContext

All Known Implementing Classes:
DefaultShellContext

public interface ShellContext
Interface defining a contract for a context which allows to loosely connect different components together and keep things alive between commands.
  • Method Details

    • getInteractionMode

      InteractionMode getInteractionMode()
      Gets an interaction mode.
      Returns:
      a current interaction mode
    • setInteractionMode

      void setInteractionMode(InteractionMode interactionMode)
      Sets an interaction mode.
      Parameters:
      interactionMode - the interaction mode
    • hasPty

      boolean hasPty()
      Gets if shell has a proper pty terminal. Terminal don't have pty in cases where output is piped into a file or terminal is run in an ci system where there is no real user interaction.
      Returns:
      true if terminal has pty features