Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 1 callers
Function
discoverSkills
(opts *InstallOptions, client *api.Client, hostname string, resolved *discovery.ResolvedRef)
pkg/cmd/skills/install/install.go:634
↓ 1 callers
Function
displayIssueResults
(io *iostreams.IOStreams, now time.Time, et EntityType, results search.IssuesResult)
pkg/cmd/search/shared/shared.go:99
↓ 1 callers
Function
displayLogSegments
(w io.Writer, segments []logSegment)
pkg/cmd/run/view/view.go:576
↓ 1 callers
Function
displayOrDash
(value string)
pkg/cmd/skills/list/list.go:525
↓ 1 callers
Function
displayRemoteRepoName
(remote *context.Remote)
pkg/cmd/repo/setdefault/setdefault.go:259
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, now time.Time, results search.CommitsResult)
pkg/cmd/search/commits/commits.go:158
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, now time.Time, results search.RepositoriesResult)
pkg/cmd/search/repos/repos.go:164
↓ 1 callers
Function
displayResults
(io *iostreams.IOStreams, results search.CodeResult)
pkg/cmd/search/code/code.go:163
↓ 1 callers
Function
displayScopes
(scopes string)
pkg/cmd/auth/status/status.go:432
↓ 1 callers
Function
doJSONRequest
doJSONRequest makes a JSON request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:976
↓ 1 callers
Function
doProtobufRequest
doProtobufRequest makes a Protobuf request to the remote Twirp service.
internal/barista/observability/telemetry.twirp.go:927
↓ 1 callers
Function
done
()
evals/src/suites/events/suite.ts:45
↓ 1 callers
Function
downloadArtifact
downloadArtifact writes one artifact's file and prints its result line. It reports false when the artifact failed.
pkg/cmd/issue/artifact/download/download.go:220
↓ 1 callers
Function
downloadArtifact
(httpClient *http.Client, hostname string, url safeurl.SafeURL, openDestination func() (*safepaths.Root, error
pkg/cmd/run/download/http.go:31
↓ 1 callers
Function
downloadAssets
(dest *destinationWriter, httpClient *http.Client, toDownload []downloadTarget, numWorkers int, isArchive bool
pkg/cmd/release/download/download.go:265
↓ 1 callers
Method
downloadError
(err error)
script/ghmock/schemafiles.go:161
↓ 1 callers
Function
dummyRemoteToRepoResolver
()
pkg/cmd/pr/shared/find_refs_resolution_test.go:494
↓ 1 callers
Function
dumpSignedTimestamps
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:325
↓ 1 callers
Function
dumpTlogs
(entity *bundle.Bundle)
pkg/cmd/attestation/inspect/inspect.go:305
↓ 1 callers
Function
editArgs
(config editConfig)
pkg/cmd/project/edit/edit.go:119
↓ 1 callers
Function
editDistance
(a, b string)
script/ghmock/schemacmd.go:665
↓ 1 callers
Function
enableAccessiblePrompterConfig
()
internal/ghcmd/cmd_test.go:607
↓ 1 callers
Function
enableColorLabelsConfig
()
internal/ghcmd/cmd_test.go:627
↓ 1 callers
Function
enableImmutableReleases
enableImmutableReleases enables immutable releases for the repo.
pkg/cmd/skills/publish/publish.go:748
↓ 1 callers
Function
enableSpinnersConfig
()
internal/ghcmd/cmd_test.go:619
↓ 1 callers
Function
encodeContent
encodeContent fixes file contents in GitHub's examples, which say they're base64 but hold plain text such as "encoded content ...". gh decodes them, s
script/ghmock/restscaffold.go:302
↓ 1 callers
Function
endFrame
(outcome, reason string)
pkg/cmd/event/listen/listen_test.go:183
↓ 1 callers
Function
endReason
(reason: string | undefined)
evals/src/graders/review.ts:11
↓ 1 callers
Function
enrichSkills
enrichSkills fetches descriptions and star counts concurrently. Each function collects results into a map; merges happen after both complete to avoid
pkg/cmd/skills/search/search.go:381
↓ 1 callers
Method
ensureRoot
()
pkg/cmd/release/download/download.go:391
↓ 1 callers
Function
ensureWorktreePathEmpty
(path string)
pkg/cmd/pr/shared/worktree.go:131
↓ 1 callers
Function
ensureWorktreePathSafe
(path string)
pkg/cmd/pr/shared/worktree.go:116
↓ 1 callers
Function
errFromPanic
errFromPanic returns the typed error if the recovered panic is an error, otherwise formats as error.
internal/barista/observability/telemetry.twirp.go:866
↓ 1 callers
Function
errorResponse
(status int, message string)
pkg/cmd/event/client/client_test.go:47
↓ 1 callers
Function
escapeGlob
(p string)
git/client.go:1078
↓ 1 callers
Function
escapePath
escapePath URL-encodes special characters but leaves slashes unchanged
pkg/cmd/browse/browse.go:298
↓ 1 callers
Method
eventLimit
eventLimit returns the number of events to print before exiting, or zero to keep listening.
pkg/cmd/event/listen/listen.go:489
↓ 1 callers
Function
eventMatchesPull
(call: GhCall, pull: Evidence["snapshot"]["pr"], apiUrl: string, action: Action)
evals/src/suites/events/grading/observations.ts:86
↓ 1 callers
Function
exampleDiscussionWithComments
()
pkg/cmd/discussion/view/view_test.go:1090
↓ 1 callers
Function
exampleDiscussionWithReplies
(nextCursor string, newest bool)
pkg/cmd/discussion/view/view_test.go:1132
↓ 1 callers
Function
exampleUnanswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1205
↓ 1 callers
Function
exclusiveTypeConflict
(schema *ast.Schema, doc *ast.QueryDocument, problem *gqlerror.Error)
script/ghmock/graphqlcheck.go:68
↓ 1 callers
Function
executeCmds
(client *git.Client, credentialPattern git.CredentialPattern, cmdQueue [][]string)
pkg/cmd/pr/checkout/checkout.go:356
↓ 1 callers
Function
executeParentHook
executeParentHook re-runs the nearest ancestor's persistent pre-run hook, which the hook installed by EnableRepoOverride would otherwise shadow. By de
pkg/cmdutil/repo_override.go:27
↓ 1 callers
Function
executeRemoteRepoSync
ExecuteRemoteRepoSync will take several steps to sync the source and destination repositories. First it will try to use the merge-upstream API endpoin
pkg/cmd/repo/sync/sync.go:291
↓ 1 callers
Function
existingSkillPrompt
(targetDir string, incoming discovery.Skill)
pkg/cmd/skills/install/install.go:1082
↓ 1 callers
Function
exitLabel
(res runResult)
script/ghmock/report.go:406
↓ 1 callers
Function
expandToGitHubURLRegex
(tenant, ownerOrRepo string)
pkg/cmd/attestation/verify/policy.go:61
↓ 1 callers
Function
expect
(args: string[])
evals/src/suites/events/smoke-protocol.ts:42
↓ 1 callers
Function
expectScopes
TODO: this matches a token prefix itself. It could ask gh.AuthConfig.ActiveTokenType instead.
pkg/cmd/auth/status/status.go:445
↓ 1 callers
Function
expectedFilePath
(tempDir string, digestWithAlg string)
pkg/cmd/attestation/download/download_test.go:27
↓ 1 callers
Function
expiredRefresher
expiredRefresher returns a mock whose refresh token is rejected by the server, recorded via gh.ErrRefreshTokenInvalid, and records its calls.
pkg/cmd/auth/token/token_test.go:551
↓ 1 callers
Method
exportData
(v reflect.Value)
pkg/cmdutil/json_flags.go:259
↓ 1 callers
Function
extensionManager
(f *cmdutil.Factory)
pkg/cmd/factory/default.go:329
↓ 1 callers
Function
externalHttpClientFunc
(ios *iostreams.IOStreams, appVersion string)
pkg/cmd/factory/default.go:287
↓ 1 callers
Function
extractAttestationDetail
(tenant, builderSignerURI string)
pkg/cmd/attestation/verify/verify.go:360
↓ 1 callers
Function
extractFileName
(section string)
pkg/cmd/pr/diff/diff.go:402
↓ 1 callers
Function
extractScriptName
(vars []string)
acceptance/acceptance_test.go:1269
↓ 1 callers
Function
extractZipFile
(zf *zip.File, dest *safepaths.Root)
internal/zip/zip.go:33
↓ 1 callers
Function
failOnExpectError
failOnExpectError adds an observer that will fail the test in a standardised way if any expectation on the command output fails, without requiring an
pkg/iostreams/iostreams_progress_indicator_test.go:205
↓ 1 callers
Function
failOnExpectError
failOnExpectError adds an observer that will fail the test in a standardised way if any expectation on the command output fails, without requiring an
internal/prompter/accessible_prompter_test.go:909
↓ 1 callers
Function
failOnSendError
failOnSendError adds an observer that will fail the test in a standardised way if any sending of input fails, without requiring an explicit assertion.
pkg/iostreams/iostreams_progress_indicator_test.go:232
↓ 1 callers
Function
failOnSendError
failOnSendError adds an observer that will fail the test in a standardised way if any sending of input fails, without requiring an explicit assertion.
internal/prompter/accessible_prompter_test.go:936
↓ 1 callers
Function
failingRefresher
failingRefresher always fails to renew, simulating a transient refresh error.
pkg/cmd/auth/refresh/refresh_test.go:1042
↓ 1 callers
Function
failingRefresher
failingRefresher returns a mock that always fails to refresh and records its calls.
pkg/cmd/auth/token/token_test.go:541
↓ 1 callers
Function
fakeGH
fakeGH implements the few commands the run tests need.
script/ghmock/run_test.go:86
↓ 1 callers
Function
fakeGet
fakeGet prints the status and body of a GET. It fails for an error or a status of 300 or more.
script/ghmock/run_test.go:253
↓ 1 callers
Method
fetch
()
pkg/cmd/pr/shared/templates.go:240
↓ 1 callers
Function
fetchContent
fetchContent retrieves the raw Contents API response for a single path. It requests the unified object media type so directories, files, symlinks, an
pkg/cmd/repo/read-file/http.go:84
↓ 1 callers
Function
fetchDescriptions
fetchDescriptions fetches SKILL.md frontmatter descriptions concurrently for all search results. Each result may come from a different repo.
pkg/cmd/skills/search/search.go:832
↓ 1 callers
Function
fetchDiff
(httpClient *http.Client, baseRepo ghrepo.Interface, prNumber int, asPatch bool)
pkg/cmd/pr/diff/diff.go:212
↓ 1 callers
Function
fetchDraftIssueByID
(config editItemConfig, draftIssueID string)
pkg/cmd/project/item-edit/item_edit.go:328
↓ 1 callers
Function
fetchDraftRelease
fetchDraftRelease returns the first draft release that has tagName as its pending tag.
pkg/cmd/release/shared/fetch.go:237
↓ 1 callers
Function
fetchFile
fetchFile retrieves a single path's metadata and inline content via the REST Contents API. It returns a typed error when the path is a directory, sym
pkg/cmd/repo/read-file/http.go:121
↓ 1 callers
Function
fetchForkInfo
fetchForkInfo uses REST rather than GraphQL so that a missing or moved repository fails with the same error the DELETE would have returned.
pkg/cmd/repo/delete/http.go:23
↓ 1 callers
Function
fetchJobSessionURL
fetchJobSessionURL tries to return the agent session URL for a job. If the pull request is not yet available, ("", nil) is returned.
pkg/cmd/agent-task/create/create.go:209
↓ 1 callers
Function
fetchJobWithBackoff
fetchJobWithBackoff polls the job resource until a PR number is present or the overall timeout elapses. It returns the updated Job on success, (nil, n
pkg/cmd/agent-task/create/create.go:235
↓ 1 callers
Function
fetchPrimaryPages
fetchPrimaryPages fetches enough API pages from GitHub Code Search to cover the requested display page, accounting for filtering losses.
pkg/cmd/skills/search/search.go:747
↓ 1 callers
Function
fetchRawFile
fetchRawFile retrieves the raw bytes of a file, used for files larger than the 1 MB inline content limit of the Contents API.
pkg/cmd/repo/read-file/http.go:169
↓ 1 callers
Function
fetchReleases
(httpClient *http.Client, repo ghrepo.Interface, limit int, excludeDrafts bool, excludePreReleases bool, order
pkg/cmd/release/list/http.go:41
↓ 1 callers
Function
fetchReleasesWithoutImmutableReleases
TODO: immutableReleaseFullSupport This is a temporary workaround until all supported GHES versions fully support immutable releases, which would be wh
pkg/cmd/release/list/http.go:122
↓ 1 callers
Function
fetchRepoStars
fetchRepoStars fetches stargazer counts for each unique repository in the result set, using bounded concurrency.
pkg/cmd/skills/search/search.go:892
↓ 1 callers
Function
fetchTags
fetchTags returns the most recent tags from the repo.
pkg/cmd/skills/publish/publish.go:460
↓ 1 callers
Function
fetchTree
fetchTree resolves a directory listing for dirPath at ref. It uses the repository.object(expression) field, which returns a Tree for a directory, a B
pkg/cmd/repo/read-dir/http.go:129
↓ 1 callers
Function
fieldValueForItem
fieldValueForItem returns the display value of the field identified by fieldID on item i, or an empty string when the item has no value for that field
pkg/cmd/project/item-list/item_list.go:257
↓ 1 callers
Function
fields
()
pkg/cmd/issue/lock/lock.go:88
↓ 1 callers
Function
fileContent
fileContent returns what an artifact's file holds: a document's body as it is, or an Internet Shortcut for a link. gh never writes a shortcut for anyt
pkg/cmd/issue/artifact/download/download.go:470
↓ 1 callers
Method
fileContent
Reads a text file from a repository at a ref.
evals/src/core/github.ts:124
↓ 1 callers
Function
fileContentResponse
fileContentResponse builds a Contents API object response for a regular file with base64-encoded inline content.
pkg/cmd/repo/read-file/read_file_test.go:1035
↓ 1 callers
Function
fileExt
(fn string)
pkg/cmd/release/shared/upload.go:103
↓ 1 callers
Function
filePrepender
(filename string)
cmd/gen-docs/main.go:79
↓ 1 callers
Function
file_codespace_codespace_host_service_v1_proto_init
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:317
↓ 1 callers
Function
file_jupyter_jupyter_server_host_service_v1_proto_init
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:194
↓ 1 callers
Function
file_observability_v1_telemetry_proto_init
()
internal/barista/observability/telemetry.pb.go:268
↓ 1 callers
Function
file_ssh_ssh_server_host_service_v1_proto_init
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:204
↓ 1 callers
Method
fill
fill walks a value that's already there, adding missing fields inside it. null stays null, because that can be what the response is testing.
script/ghmock/gqlscaffold.go:135
↓ 1 callers
Function
fillHeader
(header *GenManHeader, name string)
internal/docs/man.go:107
↓ 1 callers
Function
filterProjects
(nodes queries.Projects, config listConfig)
pkg/cmd/project/list/list.go:141
↓ 1 callers
Method
filterView
()
pkg/cmd/extension/browse/model.go:692
↓ 1 callers
Function
filtered
(...args: string[])
evals/src/graders.test.ts:208
← previous
next →
3,101–3,200 of 7,487, ranked by callers