Polyman Documentation - v3.1.0
    Preparing search index...

    Function isAgentMode

    • Whether polyman runs under an agent runner (POLYMAN_AGENT=1). In agent mode there are no spinners and no progress bars that redraw lines, and colors are off. Any future progress output must check this first.

      Parameters

      • env: Env = process.env

        Environment variables to read

      Returns boolean

      True when POLYMAN_AGENT is 1

      if (isAgentMode()) console.error('step 3 done');