MCPcopy Create free account
hub / github.com/github/gh-aw / getCLICmdPrefix

Function getCLICmdPrefix

pkg/workflow/maintenance_workflow.go:84–89  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

82// In dev mode: "./gh-aw" (local binary built from source)
83// In release mode: "gh aw" (installed via gh extension)
84func 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

Callers 4

TestGetCLICmdPrefixFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetCLICmdPrefixFunction · 0.68