Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 3 callers
Function
isEscaped
isEscaped reports whether the byte at i is preceded by an odd number of backslashes, which is what makes it a literal rather than markup.
internal/attachments/references.go:733
↓ 3 callers
Function
isGarage
(h string)
internal/ghinstance/host.go:32
↓ 3 callers
Function
isKeyNotFound
(err error)
internal/config/refreshable.go:814
↓ 3 callers
Function
isObjectSchema
(s *openapi3.Schema)
script/ghmock/restscaffold.go:386
↓ 3 callers
Function
isSpace
isSpace reports whether c is ASCII whitespace, which is what ends an unbracketed markdown destination.
internal/attachments/references.go:750
↓ 3 callers
Function
jsonExporter
(fields ...string)
pkg/cmd/discussion/view/view_test.go:1237
↓ 3 callers
Function
jsonMedia
jsonMedia picks the JSON content of a documented response.
script/ghmock/restcheck.go:216
↓ 3 callers
Function
jsonText
(v any)
script/ghmock/graphqlcheck.go:469
↓ 3 callers
Function
jupyterWebForwardingURL
jupyterWebForwardingURL builds the URL to open for the forwarded JupyterLab port. The origin comes from the tunnel's own web forwarding URI. The code
pkg/cmd/codespace/jupyter.go:129
↓ 3 callers
Function
listIssues
(client *api.Client, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:15
↓ 3 callers
Function
listLabels
listLabels lists the labels in the given repo. Pass -1 for limit to list all labels; otherwise, only that number of labels is returned for any number
pkg/cmd/label/http.go:68
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/issue/list/list.go:134
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/variable/list/list.go:79
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/secret/list/list.go:107
↓ 3 callers
Function
listRun
(ctx context.Context, opts *ListOptions)
pkg/cmd/event/subscription/list/list.go:68
↓ 3 callers
Method
listWidth
()
pkg/cmd/extension/browse/model.go:565
↓ 3 callers
Method
listen
(path: string)
evals/src/core/observer.ts:80
↓ 3 callers
Function
loadBundlesFromJSONLinesFile
(path string)
pkg/cmd/attestation/verification/attestation.go:57
↓ 3 callers
Method
loadSelectedReadme
()
pkg/cmd/extension/browse/model.go:606
↓ 3 callers
Method
locate
locate returns the schema file to use: the file named by the environment variable, a cached copy, or a fresh download into the cache.
script/ghmock/schemafiles.go:65
↓ 3 callers
Function
lockRun
lockRun will lock or unlock a conversation.
pkg/cmd/issue/lock/lock.go:227
↓ 3 callers
Function
lockfilePath
lockfilePath returns the absolute path to the lock file.
internal/skills/lockfile/lockfile.go:43
↓ 3 callers
Method
logPath
()
script/ghmock/store.go:152
↓ 3 callers
Function
logoutRun
(opts *LogoutOptions)
pkg/cmd/auth/logout/logout.go:102
↓ 3 callers
Method
mainHeight
()
pkg/cmd/extension/browse/model.go:731
↓ 3 callers
Function
manPrintFlags
(buf *bytes.Buffer, flags *pflag.FlagSet)
internal/docs/man.go:142
↓ 3 callers
Method
markdown
(assetURL string)
internal/attachments/userasset.go:48
↓ 3 callers
Function
matchHiddenDirConventions
matchHiddenDirConventions checks if a blob path matches a skill convention under a path that contains a hidden (dot-prefixed) directory. These pattern
internal/skills/discovery/discovery.go:533
↓ 3 callers
Method
memoizedFetch
()
pkg/cmd/pr/shared/templates.go:230
↓ 3 callers
Function
metadata
(name: string)
evals/src/graders/result.ts:5
↓ 3 callers
Function
minimalNode
minimalNode returns a minimal JSON discussion node with the given id and title.
pkg/cmd/discussion/client/client_test.go:24
↓ 3 callers
Function
mockMigration
(doFunc func(config *ghConfig.Config) error)
internal/config/migrate_test.go:232
↓ 3 callers
Method
modeOctal
modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
pkg/cmd/repo/read-dir/http.go:58
↓ 3 callers
Function
newAsset
newAsset validates one attached file.
internal/attachments/userasset.go:121
↓ 3 callers
Function
newCAPITransport
(authCfg authConfig, host string, capiBaseURL string, rp http.RoundTripper)
pkg/cmd/agent-task/capi/client.go:61
↓ 3 callers
Function
newProjectFromQueryWithItemsQuery
(source projectQueryWithQueryableItems)
pkg/cmd/project/shared/queries/queries.go:245
↓ 3 callers
Function
newProxy
newProxy builds the reverse proxy. The upstream URL carries the canonical host that requests are forwarded to and that responses are rewritten from, w
script/api-host-gateway/gateway/main.go:149
↓ 3 callers
Function
newRecorder
(path string)
script/api-host-gateway/gateway/main.go:285
↓ 3 callers
Function
newRequestConfig
(opts []RequestOption)
api/client.go:99
↓ 3 callers
Function
newScratch
(ca *certAuthority)
script/ghmock/run.go:402
↓ 3 callers
Function
newTerminal
(t *testing.T)
pkg/surveyext/editor_test.go:197
↓ 3 callers
Function
normalizeANSI
strips some ANSI escape sequences that we do not want tests to be concerned with
pkg/surveyext/editor_test.go:280
↓ 3 callers
Function
normalizeExtension
normalizeExtension makes sure that the provided extension name is prefixed with "gh-".
pkg/cmd/extension/manager.go:886
↓ 3 callers
Function
normalizeReference
(reference string, pathSeparator rune)
pkg/cmd/attestation/artifact/artifact.go:30
↓ 3 callers
Function
open
(stale: boolean)
evals/src/suites/events/fixtures.ts:66
↓ 3 callers
Method
openDirectories
(name string, perm os.FileMode)
internal/safepaths/root.go:291
↓ 3 callers
Function
outputLines
(output []byte)
git/client.go:978
↓ 3 callers
Function
parseExecutorConfig
(value: unknown, suites: SuiteRegistry)
evals/src/core/suite.ts:105
↓ 3 callers
Function
parseKeys
(s string)
script/ghmock/terminal_common.go:23
↓ 3 callers
Function
patchVariable
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/variable/set/http.go:134
↓ 3 callers
Function
postVariable
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/variable/set/http.go:87
↓ 3 callers
Function
prepareGitRepo
(t *testing.T, remote string)
script/ghmock/gitcmd_test.go:375
↓ 3 callers
Function
prepareHome
( home: string, config: { gh: string; token: string; modelToken: string; observe?: boolean }, )
evals/src/core/home.ts:33
↓ 3 callers
Function
printFileTree
printFileTree renders a text tree of the on-disk contents of each skill directory.
pkg/cmd/skills/install/install.go:1131
↓ 3 callers
Function
printHostHints
printHostHints prints any agent-specific post-install guidance for the hosts that were installed to. Most agents need no extra steps; this is currentl
pkg/cmd/skills/install/install.go:1209
↓ 3 callers
Function
printPreInstallDisclaimer
printPreInstallDisclaimer prints a warning that installed skills are unverified and should be inspected before use.
pkg/cmd/skills/install/install.go:1170
↓ 3 callers
Function
printReport
printReport writes what each binary did. With more than one binary, it then lists how each one differs from the first. notes say which schema checks c
script/ghmock/report.go:20
↓ 3 callers
Function
printReviewHint
printReviewHint reminds the user to review installed skills and suggests preview commands. When sha is non-empty the suggested commands include @SHA s
pkg/cmd/skills/install/install.go:1179
↓ 3 callers
Function
provision
( github: EventsGitHub, org: string, scenario: Scenario, workDir: string, env: NodeJS.ProcessEnv, journalP
evals/src/suites/events/fixtures.ts:13
↓ 3 callers
Function
rankByRelevance
rankByRelevance sorts results by multi-signal score, highest first.
pkg/cmd/skills/search/search.go:674
↓ 3 callers
Function
read
(id: string, at: number)
evals/src/graders.test.ts:62
↓ 3 callers
Function
reason
reason creates a sentence fragment so that the lock reason can be used in a sentence. e.g. "resolved" -> " as RESOLVED"
pkg/cmd/issue/lock/lock.go:209
↓ 3 callers
Function
recordFromCredential
recordFromCredential projects a gh.Credential onto the persisted record shape, dropping the runtime-only Source and carrying the access token as Acces
internal/config/refreshable.go:756
↓ 3 callers
Function
recordingHandler
recordingHandler attaches a record to the request context so the proxy can fill in the outcome, then writes exactly one line per request once the prox
script/api-host-gateway/gateway/main.go:131
↓ 3 callers
Function
renderRawMarkdown
renderRawMarkdown renders the given raw markdown string to the given writer. Use for complete markdown content from tool calls that need no conversion
pkg/cmd/agent-task/shared/log.go:298
↓ 3 callers
Method
repository
(mode string)
acceptance/fixture_repository_test.go:118
↓ 3 callers
Method
resizeReadme
()
pkg/cmd/extension/browse/model.go:597
↓ 3 callers
Function
resolveBody
resolveBody determines the comment body from flags or interactive input. defaultBody is used as the initial content in the editor (e.g., existing comm
pkg/cmd/discussion/comment/comment.go:283
↓ 3 callers
Function
resolveCommentID
resolveCommentID returns the comment node ID, resolving it from the database ID via the API if the arg was a comment URL.
pkg/cmd/discussion/comment/comment.go:270
↓ 3 callers
Function
resolveWorkflowRunID
(output string, list func() (string, error), sleep func(time.Duration))
acceptance/acceptance_test.go:85
↓ 3 callers
Method
responsesPath
()
script/ghmock/store.go:148
↓ 3 callers
Function
result
(name: string, checks: Check[])
evals/src/graders/result.ts:13
↓ 3 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/status/status_test.go:20
↓ 3 callers
Function
runCommandWithRootDirOverridden
(rt http.RoundTripper, isTTY bool, cli string, rootDir string, pm *prompter.PrompterMock)
pkg/cmd/issue/create/create_test.go:1490
↓ 3 callers
Function
runDeleteField
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:64
↓ 3 callers
Function
runGit
(t *testing.T, repoDir string, args ...string)
pkg/cmd/repo/sync/sync_test.go:249
↓ 3 callers
Function
runGitAt
(t *testing.T, dir string, args ...string)
git/client_test.go:1620
↓ 3 callers
Function
runInspect
(opts *Options)
pkg/cmd/attestation/inspect/inspect.go:160
↓ 3 callers
Function
runLink
(config linkConfig)
pkg/cmd/project/link/link.go:155
↓ 3 callers
Function
runMain
(args []string, stdout, stderr io.Writer)
script/ghmock/main.go:200
↓ 3 callers
Function
runUnlink
(config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:155
↓ 3 callers
Function
runView
(opts *ViewOptions)
pkg/cmd/run/view/view.go:220
↓ 3 callers
Method
runsPath
()
script/ghmock/store.go:156
↓ 3 callers
Function
scanInstalledSkills
scanInstalledSkills reads all SKILL.md files in a skills directory and extracts GitHub metadata from their frontmatter. It handles both flat layouts (
pkg/cmd/skills/update/update.go:607
↓ 3 callers
Function
searchIssues
(client *api.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:119
↓ 3 callers
Function
selectSkillsWithSelector
(opts *InstallOptions, skills []discovery.Skill, canPrompt bool, sel skillSelector)
pkg/cmd/skills/install/install.go:684
↓ 3 callers
Method
setActiveCredential
setActiveCredential clears every host level active credential representation and copies the user's stored credential into the active slot, preserving
internal/config/config.go:710
↓ 3 callers
Function
setStateEntry
(stateFilePath string, t time.Time, r ReleaseInfo)
internal/update/update.go:164
↓ 3 callers
Function
sharedCmds
sharedCmds defines a collection of custom testscript commands for our use.
acceptance/acceptance_test.go:931
↓ 3 callers
Function
sharedSetup
(tsEnv testScriptEnv)
acceptance/acceptance_test.go:859
↓ 3 callers
Method
singleColumn
()
pkg/cmd/extension/browse/model.go:561
↓ 3 callers
Function
singleSelectField
singleSelectField builds a ProjectV2SingleSelectField fixture with the given id, name, and options (alternating id/name pairs are passed as a slice).
pkg/cmd/project/shared/queries/resolve_fields_test.go:22
↓ 3 callers
Function
skillSearchFunc
skillSearchFunc returns a search function for MultiSelectWithSearch that filters skills by case-insensitive substring match on name and description.
pkg/cmd/skills/install/install.go:824
↓ 3 callers
Function
skipSpace
(src []byte, i, hi int)
internal/attachments/references.go:741
↓ 3 callers
Function
startPage
(w io.Writer)
pkg/cmd/api/pagination.go:210
↓ 3 callers
Function
startServer
(st *state, chk *checker, ca *certAuthority, git *gitBackend)
script/ghmock/server.go:49
↓ 3 callers
Function
statusRead
(call: Call)
evals/src/suites/events/commands.ts:89
↓ 3 callers
Function
statusRun
(opts *StatusOptions)
pkg/cmd/auth/status/status.go:272
↓ 3 callers
Function
stream
(at = 15, id = "event-review", reviewId = 7)
evals/src/graders.test.ts:55
↓ 3 callers
Function
stubBranchConfig
(branchConfig git.BranchConfig, err error)
pkg/cmd/pr/shared/finder_test.go:928
← previous
next →
1,201–1,300 of 7,572, ranked by callers