getCLICmdPrefix returns the CLI command prefix based on action mode. In dev mode: "./gh-aw" (local binary built from source) In release mode: "gh aw" (installed via gh extension)
(actionMode ActionMode)
| 82 | // In dev mode: "./gh-aw" (local binary built from source) |
| 83 | // In release mode: "gh aw" (installed via gh extension) |
| 84 | func getCLICmdPrefix(actionMode ActionMode) string { |
| 85 | if actionMode == ActionModeDev { |
| 86 | return "./gh-aw" |
| 87 | } |
| 88 | return "gh aw" |
| 89 | } |
| 90 | |
| 91 | // FetchDefaultBranch queries the GitHub API to determine the default branch of the |
| 92 | // given repository slug (owner/repo). Returns "main" as a fallback when the slug is |
no outgoing calls