| 52 | } |
| 53 | |
| 54 | func showHelpDirect() { |
| 55 | fmt.Printf("%s - GitHub CLI for PR operations\n\n", commandName) |
| 56 | fmt.Println("Usage:") |
| 57 | fmt.Printf(" %s <pr-url> Get full diff of a PR\n", commandName) |
| 58 | fmt.Printf(" %s <pr-url> --no-comments Get diff without comments/reviews\n", commandName) |
| 59 | fmt.Printf(" %s diff <pr-url> Get full diff of a PR\n", commandName) |
| 60 | fmt.Printf(" %s deploy Build and install to ~/bin\n", commandName) |
| 61 | fmt.Printf(" %s version Show version\n", commandName) |
| 62 | fmt.Println() |
| 63 | fmt.Println("PR reference formats:") |
| 64 | fmt.Println(" https://github.com/owner/repo/pull/123") |
| 65 | fmt.Println(" owner/repo#123") |
| 66 | } |
| 67 | |
| 68 | func runDiffDirect(ref string, extraArgs []string) error { |
| 69 | ref = strings.TrimSpace(ref) |