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

      Parameters

      • command: string

        The command to execute.

      • Optionaloptions: Readonly<ExecOptionsWithStringEncoding & Readonly<{ silent?: boolean }>>

        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
            | Readonly<
                ExecOptionsWithStringEncoding & Readonly<{ silent?: boolean }>,
            >
            | Readonly<ExecOptionsWithBufferEncoding & Readonly<{ silent?: boolean }>>
            | undefined = undefined

      Parameters

      • command: string

        The command to execute.

      • Optionaloptions: TOptions

        Optional configuration for command execution.

      Returns Promise<
          ExecResult<
              TOptions extends Readonly<
                  ExecOptionsWithBufferEncoding & Readonly<{ silent?: boolean }>,
              >
                  ? Buffer<ArrayBufferLike>
                  : string,
          >,
      >

      A promise that resolves with the command result.