(name string, out io.Writer)
| 583 | } |
| 584 | |
| 585 | func printCommandHelp(name string, out io.Writer) bool { |
| 586 | switch name { |
| 587 | case "updateGoVersion": |
| 588 | fmt.Fprintln(out, "Upgrade Go using the workspace script") |
| 589 | fmt.Fprintln(out) |
| 590 | fmt.Fprintln(out, "Usage:") |
| 591 | fmt.Fprintf(out, " %s updateGoVersion\n", commandName) |
| 592 | return true |
| 593 | case "deploy": |
| 594 | fmt.Fprintf(out, "Install %s into %s and prompt to add it to PATH using task deploy\n", commandName, flowInstallDir) |
| 595 | fmt.Fprintln(out) |
| 596 | fmt.Fprintln(out, "Usage:") |
| 597 | fmt.Fprintf(out, " %s deploy\n", commandName) |
| 598 | return true |
| 599 | case "commit": |
| 600 | fmt.Fprintln(out, "Generate a commit message with GPT-5 nano and create the commit") |
| 601 | fmt.Fprintln(out) |
| 602 | fmt.Fprintln(out, "Usage:") |
| 603 | fmt.Fprintf(out, " %s commit\n", commandName) |
| 604 | return true |
| 605 | case "commitPush": |
| 606 | fmt.Fprintln(out, "Generate a commit message, commit, and push to the default remote") |
| 607 | fmt.Fprintln(out) |
| 608 | fmt.Fprintln(out, "Usage:") |
| 609 | fmt.Fprintf(out, " %s commitPush\n", commandName) |
| 610 | return true |
| 611 | case "commitReviewAndPush": |
| 612 | fmt.Fprintln(out, "Generate a commit message, review it interactively, commit, and push") |
| 613 | fmt.Fprintln(out) |
| 614 | fmt.Fprintln(out, "Usage:") |
| 615 | fmt.Fprintf(out, " %s commitReviewAndPush\n", commandName) |
| 616 | return true |
| 617 | case "branchFromClipboard": |
| 618 | fmt.Fprintln(out, "Create a git branch from the clipboard name") |
| 619 | fmt.Fprintln(out) |
| 620 | fmt.Fprintln(out, "Usage:") |
| 621 | fmt.Fprintf(out, " %s branchFromClipboard\n", commandName) |
| 622 | return true |
| 623 | case "clone": |
| 624 | fmt.Fprintln(out, "Clone a GitHub repository into ~/gh/<owner>/<repo>") |
| 625 | fmt.Fprintln(out) |
| 626 | fmt.Fprintln(out, "Usage:") |
| 627 | fmt.Fprintf(out, " %s clone <github-url>\n", commandName) |
| 628 | return true |
| 629 | case "cloneAndOpen": |
| 630 | fmt.Fprintln(out, "Clone a GitHub repository and open it in Cursor") |
| 631 | fmt.Fprintln(out) |
| 632 | fmt.Fprintln(out, "Usage:") |
| 633 | fmt.Fprintf(out, " %s cloneAndOpen [github-url]\n", commandName) |
| 634 | fmt.Fprintln(out) |
| 635 | fmt.Fprintln(out, "Without an argument the command uses the frontmost Safari tab URL.") |
| 636 | return true |
| 637 | case "clonePR": |
| 638 | fmt.Fprintln(out, "Clone a GitHub pull request into ~/pr/<repo>-pr<num> and check it out") |
| 639 | fmt.Fprintln(out) |
| 640 | fmt.Fprintln(out, "Usage:") |
| 641 | fmt.Fprintf(out, " %s clonePR <github-pr-url-or-owner/repo#num>\n", commandName) |
| 642 | return true |
no test coverage detected