Function isInteractive

  • Returns true when a context is that of an interactive environment. Ensures that there's a TTY stdin and stdout, it's a non-dumb terminal, and not running in a CI.

    Parameters

    Returns context is Interactive