RunGHContext executes a gh CLI command with context support (for cancellation/timeout), a spinner, and returns the stdout output. The spinner is shown in interactive terminals to provide feedback during network operations. Usage: output, err := RunGHContext(ctx, "Fetching user info...", "api", "/
(ctx context.Context, spinnerMessage string, args ...string)
| 159 | // |
| 160 | // output, err := RunGHContext(ctx, "Fetching user info...", "api", "/user") |
| 161 | func RunGHContext(ctx context.Context, spinnerMessage string, args ...string) ([]byte, error) { |
| 162 | return runGHWithSpinnerContext(ctx, spinnerMessage, false, args...) |
| 163 | } |
| 164 | |
| 165 | // RunGHCombined executes a gh CLI command with a spinner and returns combined stdout+stderr output. |
| 166 | // The spinner is shown in interactive terminals to provide feedback during network operations. |