RunGH executes a gh CLI command with a spinner and returns the stdout output. The spinner is shown in interactive terminals to provide feedback during network operations. The spinnerMessage parameter describes what operation is being performed. Usage: output, err := RunGH("Fetching user info...",
(spinnerMessage string, args ...string)
| 148 | // |
| 149 | // output, err := RunGH("Fetching user info...", "api", "/user") |
| 150 | func RunGH(spinnerMessage string, args ...string) ([]byte, error) { |
| 151 | return RunGHContext(context.Background(), spinnerMessage, args...) |
| 152 | } |
| 153 | |
| 154 | // RunGHContext executes a gh CLI command with context support (for cancellation/timeout), a |
| 155 | // spinner, and returns the stdout output. The spinner is shown in interactive terminals to |