@grandlinex/core
    Preparing search index...

    Class Executable

    Executes a shell command and streams its output.

    The Executable class uses Node.js's child_process.spawn to run a given command. It collects the standard output and error streams, optionally forwards the data through callbacks provided in the options object, and resolves a promise once the child process exits.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    cmd: string

    Methods

    • Executes the command specified by cmd with optional arguments and options.

      Parameters

      • Optionalargs: string[]

        Optional array of arguments to pass to the command.

      Returns Promise<XExecResult>

      A promise that resolves when the child process exits. The resolved value includes the exit code, a boolean indicating whether an error occurred, and the collected stdout and stderr output.