RAGS - v1.10.0
    Preparing search index...

    Variable execAsync

    execAsync: (cmd: string | string[]) => Promise<string>

    Type Declaration

      • (cmd: string | string[]): Promise<string>
      • Executes a command asynchronously and returns a Promise.

        Parameters

        • cmd: string | string[]

          Command string or string array

        Returns Promise<string>

        A promise that resolves with trimmed stdout, or rejects with trimmed stderr

        const result = await execAsync('ls -la');
        const files = await execAsync(['find', '.', '-name', '*.ts']);