RAGS - v1.10.0
    Preparing search index...

    Function execAsync

    • 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']);