fynjs API
    Preparing search index...

    Class VisualExec

    Index
    • Abort/kill the running command

      Parameters

      • signal: string = "SIGTERM"

      Returns void

    • Parameters

      • text: string

      Returns RegExpMatchArray

    • Run the command and render its output.

      Resolves with ExecOutput, or with whatever an onComplete callback returned in its place. T defaults to ExecOutput so the common case needs no cast at the call site.

      Type Parameters

      Parameters

      • Optionalcommand: string

      Returns Promise<T>

    • Alias for abort()

      Parameters

      • Optionalsignal: string

      Returns void

    • Log the final output. Can be overridden to customize output handling. Set to a no-op function to suppress output logging.

      Parameters

      Returns void

    • Attach to an already-started child and render its output.

      Resolves with the command's ExecOutput, unless an onComplete callback returned a value - that value is passed through instead. T names what the caller expects back; it defaults to ExecOutput, which is what a run without an onComplete produces.

      Type Parameters

      Parameters

      • child: ChildProcess

      Returns Promise<T>