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
↓ 2 callers
Function
parseLogArgs
(args []string)
script/ghmock/log.go:21
↓ 2 callers
Function
parsePushRevision
(revParseOut []byte)
git/client.go:643
↓ 2 callers
Function
parseRemoteURLOrName
(value string)
git/client.go:1038
↓ 2 callers
Function
parseRemotes
(remotesStr []string)
git/client.go:1000
↓ 2 callers
Function
parseRepoArgs
(args []string)
script/ghmock/gitcmd.go:24
↓ 2 callers
Function
parseRepoVisibility
(s string)
internal/skills/discovery/discovery.go:178
↓ 2 callers
Function
parseRunArgs
(args []string)
script/ghmock/run.go:82
↓ 2 callers
Function
parseSCPArgs
(args []string)
internal/codespaces/ssh.go:146
↓ 2 callers
Function
parseScaffoldArgs
(args []string)
script/ghmock/scaffold.go:22
↓ 2 callers
Function
parseSchemaArgs
(args []string)
script/ghmock/schemacmd.go:30
↓ 2 callers
Function
parseScriptFilter
parseScriptFilter splits a comma-separated GH_ACCEPTANCE_SCRIPT value into individual script names, trimming whitespace and ignoring empty entries.
acceptance/scriptfilter_test.go:11
↓ 2 callers
Function
parseSetArgs
(args []string)
script/ghmock/set.go:36
↓ 2 callers
Function
parseTemplate
(tmpl string)
script/ghmock/restcheck.go:58
↓ 2 callers
Function
parseTrialEvidence
(value: unknown)
evals/src/suites/events/grading/evidence.ts:33
↓ 2 callers
Function
parseWorktrees
parseWorktrees parses the output of `git worktree list --porcelain` into a slice of Worktree. Each record begins with a "worktree <path>" line followe
git/client.go:299
↓ 2 callers
Function
parseWriteArgs
(args []string)
script/ghmock/gitcmd.go:105
↓ 2 callers
Function
partitionReviewersByType
partitionReviewersByType splits reviewer identifiers into users, bots, and teams. Team identifiers are in the form "org/slug" and are returned as-is.
pkg/cmd/pr/edit/edit.go:627
↓ 2 callers
Method
persistRefreshedCredential
persistRefreshedCredential writes a renewed refreshable credential back to the storage form it already lived in. Refreshable credentials are resolved
internal/config/refreshable.go:714
↓ 2 callers
Function
persistentWait
(call: Call)
evals/src/suites/events/commands.ts:40
↓ 2 callers
Function
pinRun
(opts *PinOptions)
pkg/cmd/issue/pin/pin.go:82
↓ 2 callers
Function
plainHttpClientFunc
(ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler)
pkg/cmd/factory/default.go:259
↓ 2 callers
Function
possibleTypeNames
(schema *ast.Schema, def *ast.Definition)
script/ghmock/graphqlcheck.go:453
↓ 2 callers
Function
prAssigneeList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:428
↓ 2 callers
Function
prLabelList
(pr api.PullRequest, cs *iostreams.ColorScheme)
pkg/cmd/pr/view/view.go:445
↓ 2 callers
Function
prProjectList
(pr api.PullRequest)
pkg/cmd/pr/view/view.go:467
↓ 2 callers
Function
prReviewerList
prReviewerList generates a reviewer list with their last state
pkg/cmd/pr/view/view.go:357
↓ 2 callers
Function
preciseAgo
(now time.Time, createdAt time.Time)
pkg/cmd/run/shared/shared.go:684
↓ 2 callers
Method
preload
preload loads both schemas before gh starts, so a first-time download doesn't happen while gh waits for a response.
script/ghmock/checker.go:102
↓ 2 callers
Function
previewNamesToMIMETypes
(names []string)
pkg/cmd/api/api.go:739
↓ 2 callers
Function
printArgs
(w io.Writer, args []string)
internal/run/run.go:90
↓ 2 callers
Function
printAuthWarnings
printAuthWarnings writes each warning recorded by authCfg to w, prefixed with a warning icon.
internal/ghcmd/cmd.go:351
↓ 2 callers
Function
printError
printError writes err to out, followed by usage information when the error is the result of command misuse. When fullHelp is set the complete help tex
internal/ghcmd/cmd.go:308
↓ 2 callers
Function
printFlagsHTML
(w io.Writer, fs *pflag.FlagSet)
internal/docs/markdown.go:113
↓ 2 callers
Function
printHumanComment
(opts *ViewOptions, out io.Writer, c client.DiscussionComment, indent string, isReply bool, isNewest bool)
pkg/cmd/discussion/view/view.go:495
↓ 2 callers
Function
printItemResults
(config editItemConfig, item *queries.ProjectItem)
pkg/cmd/project/item-edit/item_edit.go:418
↓ 2 callers
Function
printListenHint
(w io.Writer, detector fd.Detector, pullRequestURL string, h listenHint)
pkg/cmd/event/shared/hint.go:53
↓ 2 callers
Function
printRawComment
(out io.Writer, c client.DiscussionComment)
pkg/cmd/discussion/view/view.go:597
↓ 2 callers
Function
printResults
(config linkConfig, linkedTarget string)
pkg/cmd/project/link/link.go:226
↓ 2 callers
Function
printResults
(config unlinkConfig, linkedTarget string)
pkg/cmd/project/unlink/unlink.go:226
↓ 2 callers
Function
printSummary
(io *iostreams.IOStreams, counts checkCounts)
pkg/cmd/pr/checks/output.go:69
↓ 2 callers
Function
problemGroups
(e loggedRequest)
script/ghmock/report.go:170
↓ 2 callers
Function
processFiles
(stdin io.ReadCloser, filenameOverride string, filenames []string)
pkg/cmd/gist/create/create.go:190
↓ 2 callers
Function
processResponse
(resp *http.Response, opts *ApiOptions, bodyWriter, headersWriter io.Writer, template *template.Template, isFi
pkg/cmd/api/api.go:488
↓ 2 callers
Function
projectFieldValueData
(v FieldValueNodes)
pkg/cmd/project/shared/queries/queries.go:1739
↓ 2 callers
Function
promptForHostname
(opts *LoginOptions)
pkg/cmd/auth/login/login.go:299
↓ 2 callers
Function
promptForSkillOrigin
promptForSkillOrigin asks the user for the source repository of a skill that has no GitHub metadata.
pkg/cmd/skills/update/update.go:723
↓ 2 callers
Function
promptInstall
promptInstall shows a multi-select picker for the user to choose skills to install from the search results, then runs the install command for each.
pkg/cmd/skills/search/search.go:504
↓ 2 callers
Function
publishRelease
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL, discussionCategory string, isLatest *bool)
pkg/cmd/release/create/http.go:182
↓ 2 callers
Function
pullRequestError
(repo ghrepo.Interface, number int)
pkg/cmd/issue/artifact/shared/shared.go:274
↓ 2 callers
Function
randomSerial
randomSerial returns a random serial number, so certificates from different runs never share one.
script/ghmock/tls.go:69
↓ 2 callers
Function
randomString
(n int)
acceptance/acceptance_test.go:1261
↓ 2 callers
Function
reactionGroupList
(groups []client.ReactionGroup)
pkg/cmd/discussion/view/view.go:61
↓ 2 callers
Function
readDirRun
(opts *ReadDirOptions)
pkg/cmd/repo/read-dir/read_dir.go:101
↓ 2 callers
Function
readFileRun
(opts *ReadFileOptions)
pkg/cmd/repo/read-file/read_file.go:129
↓ 2 callers
Function
readLog
(t *testing.T, path string)
script/api-host-gateway/gateway/main_test.go:134
↓ 2 callers
Function
readTestdata
(t *testing.T, name string)
script/ghmock/schemafiles_test.go:51
↓ 2 callers
Function
readTrialEvidence
(trajectory: Trajectory)
evals/src/suites/events/grading/evidence.ts:47
↓ 2 callers
Method
readmePaneView
()
pkg/cmd/extension/browse/model.go:720
↓ 2 callers
Function
readyForActor
(wait: Call, calls: Call[], now: number)
evals/src/suites/events/commands.ts:81
↓ 2 callers
Function
refName
refName is the last part of a schema's $ref, such as simple-user.
script/ghmock/schemacmd.go:508
↓ 2 callers
Method
referenceStyle
referenceStyle reports whether the destination lives in a definition rather than beside the reference.
internal/attachments/references.go:241
↓ 2 callers
Method
refreshCredentialForUser
refreshCredentialForUser renews the given refreshable credential when its access token is expiring and persists the renewal to the same storage the cr
internal/config/refreshable.go:418
↓ 2 callers
Function
refreshStorageErrorKind
refreshStorageErrorKind classifies a credential storage error for the storage_error dimension.
internal/config/refreshable_telemetry.go:106
↓ 2 callers
Function
refreshableCredentialFromAccessToken
refreshableCredentialFromAccessToken projects an OAuth access token onto gh.RefreshableCredential. It derives each absolute expiry by adding the serve
internal/authflow/refresh.go:86
↓ 2 callers
Function
refreshableFromKeyring
(hostname, username string)
internal/config/refreshable.go:318
↓ 2 callers
Function
registerEventGraders
(registry: GraderRegistry, evidenceFor: EvidenceFor)
evals/src/suites/events/grading/index.ts:7
↓ 2 callers
Function
registerFixtureRepositoryCleanup
(t *testing.T, skip bool, fixtureRepositories *fixtureRepositoryManager)
acceptance/acceptance_test.go:628
↓ 2 callers
Method
reload
reload re-reads the config from disk into the shared config, using the reloadConfig seam when set and the real ghConfig.Reload otherwise. The producti
internal/config/refreshable.go:134
↓ 2 callers
Function
relocateGitAlternates
(path, source, destination string)
script/ghmock/gitfixture.go:244
↓ 2 callers
Function
remoteSkillFrontmatterForRepo
(name, repoURL, sourcePath, ref, pinned string)
pkg/cmd/skills/list/list_test.go:520
↓ 2 callers
Function
remotesFunc
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:188
↓ 2 callers
Function
removeCopilot
(installDir string)
pkg/cmd/copilot/copilot.go:448
↓ 2 callers
Function
removeRun
(opts *DeleteOptions)
pkg/cmd/variable/delete/delete.go:72
↓ 2 callers
Function
renameRun
(opts *RenameOptions)
pkg/cmd/gist/rename/rename.go:59
↓ 2 callers
Function
renameRun
(opts *RenameOptions)
pkg/cmd/repo/rename/rename.go:108
↓ 2 callers
Method
renderFile
(filePath, content string)
pkg/cmd/skills/preview/preview.go:376
↓ 2 callers
Function
renderFileContentAsMarkdown
renderFileContentAsMarkdown renders the given content as markdown based on the file extension of the path.
pkg/cmd/agent-task/shared/log.go:367
↓ 2 callers
Function
renderFileTree
renderFileTree prints a tree of skill files using box-drawing characters.
pkg/cmd/skills/preview/preview.go:495
↓ 2 callers
Function
renderListLine
(line string, width int)
pkg/cmd/extension/browse/model.go:662
↓ 2 callers
Function
renderMarkdownPreview
(io *iostreams.IOStreams, filePath, content string)
pkg/cmd/skills/preview/preview.go:392
↓ 2 callers
Function
renderMarkdownWithFormat
renderMarkdownWithFormat renders the given markdown string to the given writer. If a formatFunc is provided, the md string is ran through it before re
pkg/cmd/agent-task/shared/log.go:311
↓ 2 callers
Function
renderTable
renderTable outputs a formatted table of skill results.
pkg/cmd/skills/search/search.go:482
↓ 2 callers
Function
renderTable
(io *iostreams.IOStreams, skills []listedSkill)
pkg/cmd/skills/list/list.go:500
↓ 2 callers
Function
renderToolCallTitle
renderToolCallTitle renders a title for a tool call. Should be followed by a call to render a markdown representation of the tool call's content.
pkg/cmd/agent-task/shared/log.go:413
↓ 2 callers
Method
rendersAsPlayer
()
internal/attachments/userasset.go:46
↓ 2 callers
Function
repoExists
(httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/extension/http.go:15
↓ 2 callers
Function
repoKeys
(httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/repo/deploy-key/list/http.go:20
↓ 2 callers
Function
reposRun
(opts *ReposOptions)
pkg/cmd/search/repos/repos.go:134
↓ 2 callers
Function
repositoryCreationIsManaged
(args []string, fixtureMode string)
acceptance/acceptance_test.go:40
↓ 2 callers
Method
request
(name string)
script/ghmock/scaffold.go:165
↓ 2 callers
Function
requestBody
(debug bool)
pkg/cmd/run/rerun/rerun.go:243
↓ 2 callers
Function
requestName
requestName returns the name responses are stored under: "graphql Operation" for GraphQL calls and "METHOD /path" for REST calls to the API host. Call
script/ghmock/request.go:56
↓ 2 callers
Function
requestsForRun
(entries []loggedRequest, runID string)
script/ghmock/log.go:92
↓ 2 callers
Function
requiredScopesFromServerMessage
(msg string)
pkg/cmd/project/shared/queries/queries.go:1727
↓ 2 callers
Method
reset
()
script/ghmock/store.go:274
↓ 2 callers
Function
resolveBinary
resolveBinary turns a --gh value into an absolute path. A bare name is looked up on PATH.
script/ghmock/run.go:424
↓ 2 callers
Function
resolveBranchRef
resolveBranchRef looks up a branch by short name and returns a fully qualified ref.
internal/skills/discovery/discovery.go:339
↓ 2 callers
Function
resolveCapiURL
resolveCapiURL queries the GitHub API for the Copilot API endpoint URL.
pkg/cmd/agent-task/shared/capi.go:49
↓ 2 callers
Function
resolveHosts
(opts *InstallOptions, canPrompt bool)
pkg/cmd/skills/install/install.go:893
↓ 2 callers
Function
resolveNetwork
(result *ResolvedRemotes, remotesForLookup int)
context/context.go:40
← previous
next →
2,101–2,200 of 7,572, ranked by callers