ts-repo-utils
    Preparing search index...
    • Executes a shell command asynchronously.

      Parameters

      • command: string

        The command to execute.

      • Optionaloptions: ExecOptionsWithStringEncoding

        Optional configuration for command execution.

      Returns Promise<ExecResult<string>>

      A promise that resolves with the command result.

    • Executes a shell command asynchronously.

      Parameters

      • command: string

        The command to execute.

      • options: ExecOptionsWithBufferEncoding

        Optional configuration for command execution.

      Returns Promise<ExecResult<Buffer<ArrayBufferLike>>>

      A promise that resolves with the command result.

    • Executes a shell command asynchronously.

      Type Parameters

      • TOptions extends ExecOptionsWithStringEncoding | ExecOptionsWithBufferEncoding | undefined = undefined

      Parameters

      • command: string

        The command to execute.

      • Optionaloptions: TOptions

        Optional configuration for command execution.

      Returns Promise<
          ExecResult<
              TOptions extends ExecOptionsWithBufferEncoding
                  ? Buffer<ArrayBufferLike>
                  : string,
          >,
      >

      A promise that resolves with the command result.