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
deleteRun
(ctx context.Context, opts *DeleteOptions)
pkg/cmd/event/subscription/delete/delete.go:60
↓ 2 callers
Function
deleteSSHKey
(httpClient *http.Client, host string, keyID string)
pkg/cmd/ssh-key/delete/http.go:14
↓ 2 callers
Function
deleteTag
(httpClient *http.Client, baseRepo ghrepo.Interface, tagName string)
pkg/cmd/release/delete/delete.go:131
↓ 2 callers
Function
detachCmds
detachCmds returns the commands for a detached checkout. When reusing an existing linked worktree, FETCH_HEAD must be written inside it (it is per-wor
pkg/cmd/pr/checkout/checkout.go:322
↓ 2 callers
Function
detectEmptyFiles
(files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:298
↓ 2 callers
Function
detectGitHubRemote
detectGitHubRemote attempts to detect the GitHub owner/repo from git remotes in the given directory. Remotes are tried in the order returned by gitCli
pkg/cmd/skills/publish/publish.go:972
↓ 2 callers
Function
detectWith
(lookup func(string) (string, bool))
internal/agents/detect.go:48
↓ 2 callers
Function
developRun
(opts *DevelopOptions)
pkg/cmd/issue/develop/develop.go:167
↓ 2 callers
Function
diffRun
(opts *DiffOptions)
pkg/cmd/pr/diff/diff.go:127
↓ 2 callers
Function
digestLocalFileArtifact
(filename, digestAlg string)
pkg/cmd/attestation/artifact/file.go:10
↓ 2 callers
Function
directiveCondition
(dirs ast.DirectiveList, variables map[string]any)
script/ghmock/graphqlcheck.go:265
↓ 2 callers
Function
discriminatorValue
discriminatorValue is the value that selects alt, such as "private" for GitHub's private-user schema.
script/ghmock/restscaffold.go:344
↓ 2 callers
Function
displayExtensionVersion
(ext extensions.Extension, version string)
pkg/cmd/extension/command.go:723
↓ 2 callers
Function
displayName
displayName returns a user's login for the terminal. A null user shows as ghost, like a deleted user in gh pr view, so callers use it only when the us
pkg/cmd/issue/artifact/view/view.go:321
↓ 2 callers
Method
displayName
displayName formats the codespace name for the interactive selector prompt.
pkg/cmd/codespace/common.go:194
↓ 2 callers
Function
documentedStatuses
documentedStatuses lists a response's status codes in numeric order, with "default" last.
script/ghmock/schemacmd.go:339
↓ 2 callers
Method
download
download fetches the file to path. It checks the file and writes it to a temporary file first, so a failed download never replaces a good copy.
script/ghmock/schemafiles.go:108
↓ 2 callers
Function
downloadAction
(number int)
pkg/cmd/issue/artifact/download/download.go:246
↓ 2 callers
Function
downloadAsset
(dest *destinationWriter, httpClient *http.Client, assetURL safeurl.SafeURL, fileName string, isArchive bool)
pkg/cmd/release/download/download.go:303
↓ 2 callers
Function
downloadAsset
downloadAsset downloads a single asset to the given file path. assetURL is an absolute URL supplied by the API, so it is requested as given rather th
pkg/cmd/extension/http.go:82
↓ 2 callers
Function
downloadCopilot
downloadCopilot downloads and installs the Copilot CLI to installDir. It returns the path to the installed Copilot binary.
pkg/cmd/copilot/copilot.go:239
↓ 2 callers
Function
downloadRun
(opts *DownloadOptions)
pkg/cmd/issue/artifact/download/download.go:142
↓ 2 callers
Function
edit
(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer, cursor showable,
pkg/surveyext/editor_manual.go:43
↓ 2 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/discussion/edit/edit.go:122
↓ 2 callers
Function
editRun
(tag string, opts *EditOptions)
pkg/cmd/release/edit/edit.go:92
↓ 2 callers
Function
editRun
(opts *editOptions)
pkg/cmd/label/edit.go:75
↓ 2 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/issue/artifact/edit/edit.go:138
↓ 2 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/gist/edit/edit.go:118
↓ 2 callers
Function
eliminateDuplicates
eliminateDuplicates filters a set of checks to only the most recent ones if the set includes repeated runs
pkg/cmd/pr/checks/aggregate.go:96
↓ 2 callers
Function
ensurePanicResponses
for github.com/pkg/errors ensurePanicResponses makes sure that rpc methods causing a panic still result in a Twirp Internal error response (status 500
internal/barista/observability/telemetry.twirp.go:847
↓ 2 callers
Function
ensurePushed
ensurePushed checks whether the current branch has unpushed commits and pushes them automatically, consistent with how gh pr create behaves.
pkg/cmd/skills/publish/publish.go:636
↓ 2 callers
Function
entryTypeFromMode
entryTypeFromMode normalizes a git object mode into the entry type names the command reports: dir, file, symlink, or submodule. Modes with an unrecogn
pkg/cmd/repo/read-dir/http.go:226
↓ 2 callers
Function
enumPlaceholder
(values []string)
script/ghmock/gqlscaffold.go:28
↓ 2 callers
Function
enumValueNames
(def *ast.Definition)
script/ghmock/graphqlcheck.go:461
↓ 2 callers
Function
envSet
(name string)
internal/config/refreshable_telemetry.go:167
↓ 2 callers
Function
errorFromResponse
errorFromResponse builds a twirp.Error from a non-200 HTTP response. If the response has a valid serialized Twirp error, then it's returned. If not, t
internal/barista/observability/telemetry.twirp.go:748
↓ 2 callers
Function
escapeAlt
(s string)
internal/attachments/userasset.go:198
↓ 2 callers
Function
evidenceLoader
()
evals/src/suites/events/grading/evidence.ts:56
↓ 2 callers
Function
executablePath
Executable is the path to the currently invoked binary
internal/ghcmd/cmd.go:455
↓ 2 callers
Method
execute
(stimulus: Stimulus, options: ExecutorOptions)
evals/src/core/executor.ts:90
↓ 2 callers
Function
executeLocalRepoSync
(srcRepo ghrepo.Interface, remote string, opts *SyncOptions)
pkg/cmd/repo/sync/sync.go:221
↓ 2 callers
Function
executeSearch
executeSearch performs a single GitHub Code Search API call.
pkg/cmd/skills/search/search.go:729
↓ 2 callers
Function
expandAlias
ExpandAlias processes argv to see if it should be rewritten according to a user's aliases.
pkg/cmd/root/alias.go:81
↓ 2 callers
Function
expandShellAlias
ExpandShellAlias processes argv to see if it should be rewritten according to a user's aliases.
pkg/cmd/root/alias.go:107
↓ 2 callers
Function
expandToGitHubURL
(tenant, ownerOrRepo string)
pkg/cmd/attestation/verify/policy.go:54
↓ 2 callers
Function
expiredRefreshableCredentialForHost
(hostname string, secure bool)
pkg/cmd/auth/logout/logout_test.go:1328
↓ 2 callers
Function
explainMovedRepo
explainMovedRepo reports the redirect that GitHub returns for a renamed or transferred repository. Requests here never follow it, so a moved repositor
pkg/cmd/repo/delete/delete.go:204
↓ 2 callers
Function
explainer
()
pkg/cmd/repo/setdefault/setdefault.go:22
↓ 2 callers
Function
exportReadme
()
script/ghmock/export.go:198
↓ 2 callers
Function
extractSkillInfo
extractSkillInfo derives the skill name and namespace from a SKILL.md path, but only if the path matches a known skill convention. Returns empty strin
pkg/cmd/skills/search/search.go:872
↓ 2 callers
Function
extractTarGz
extractTarGz reads a TAR.GZ archive from r and extracts its contents into destDir. It returns an error if the archive cannot be read, or if any file o
pkg/cmd/copilot/copilot.go:413
↓ 2 callers
Function
extractTeamSlugs
extractTeamSlugs extracts just the slug portion from team identifiers. Team identifiers can be in "org/slug" format; this returns just the slug.
api/queries_pr_review.go:691
↓ 2 callers
Function
extractTestArchive
(t *testing.T, path, destination string)
script/ghmock/export_test.go:334
↓ 2 callers
Function
extractZip
extractZip reads a ZIP archive at path and extracts its contents into destDir. It returns an error if the archive cannot be read, or if any file or di
pkg/cmd/copilot/copilot.go:378
↓ 2 callers
Function
fetchCommitSHA
fetchCommitSHA finds full commit SHA from a target ref in a repo
pkg/cmd/extension/http.go:169
↓ 2 callers
Function
fetchDescription
fetchDescription fetches and parses the frontmatter description for a skill.
internal/skills/discovery/discovery.go:677
↓ 2 callers
Function
fetchExpectedChecksum
fetchExpectedChecksum downloads the SHA256SUMS.txt file and returns the expected checksum for the given archive name.
pkg/cmd/copilot/copilot.go:342
↓ 2 callers
Function
fetchReleaseFromTag
fetchReleaseFromTag finds release by tag name for a repository
pkg/cmd/extension/http.go:141
↓ 2 callers
Function
fieldIdAndProjectIdPresence
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:499
↓ 2 callers
Function
fileContentResponseBytes
(name string, content []byte)
pkg/cmd/repo/read-file/read_file_test.go:1039
↓ 2 callers
Function
fileURL
(filePath string)
git/client_test.go:1612
↓ 2 callers
Function
file_jupyter_jupyter_server_host_service_v1_proto_rawDescGZIP
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:171
↓ 2 callers
Function
file_ssh_ssh_server_host_service_v1_proto_rawDescGZIP
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:181
↓ 2 callers
Method
fill
(ref *openapi3.SchemaRef, v any, name string, depth int)
script/ghmock/restscaffold.go:125
↓ 2 callers
Function
fillCredentials
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:28
↓ 2 callers
Function
filterAcceptanceScripts
(candidates []acceptanceScript, filtered, hasUserCapability bool)
acceptance/acceptance_test.go:723
↓ 2 callers
Function
filterByRelevance
filterByRelevance removes results that are not meaningfully related to the query. A result is kept if the query term appears in the skill name, the na
pkg/cmd/skills/search/search.go:649
↓ 2 callers
Function
filterCodespacesByRepoOwner
filterCodespacesByRepoOwner filters a list of codespaces by the owner of the repository.
pkg/cmd/codespace/common.go:262
↓ 2 callers
Function
filterDiff
filterDiff reads a unified diff and returns a new reader with file entries matching any of the exclude patterns removed.
pkg/cmd/pr/diff/diff.go:363
↓ 2 callers
Function
filterHiddenDirSkills
filterHiddenDirSkills applies the --allow-hidden-dirs flag logic. When the flag is set, all skills are returned with a warning. Otherwise, hidden-dir
pkg/cmd/skills/install/install.go:1247
↓ 2 callers
Function
filterHiddenDirSkills
filterHiddenDirSkills applies the --allow-hidden-dirs flag logic. When the flag is set, all skills are returned with a warning. Otherwise, hidden-dir
pkg/cmd/skills/preview/preview.go:423
↓ 2 callers
Function
findEndCursor
(r io.Reader)
pkg/cmd/api/pagination.go:26
↓ 2 callers
Function
findInputs
(yamlContent []byte)
pkg/cmd/workflow/run/run.go:404
↓ 2 callers
Method
findKeygen
()
pkg/ssh/ssh_keys.go:102
↓ 2 callers
Function
findNextPage
(resp *http.Response)
pkg/cmd/api/pagination.go:17
↓ 2 callers
Function
firstLine
(text string)
script/ghmock/schemacmd.go:608
↓ 2 callers
Method
footerView
()
pkg/cmd/extension/browse/model.go:454
↓ 2 callers
Method
forJob
(jobID int64)
pkg/cmd/run/view/logs.go:171
↓ 2 callers
Method
forStep
(jobID int64, stepNumber int)
pkg/cmd/run/view/logs.go:176
↓ 2 callers
Function
forkRun
(opts *ForkOptions)
pkg/cmd/repo/fork/fork.go:160
↓ 2 callers
Function
formatAgentHosts
(agentHostIDs []string)
pkg/cmd/skills/list/list.go:532
↓ 2 callers
Function
formatCodespacesForSelect
(codespaces []*api.Codespace, includeOwner bool)
pkg/cmd/codespace/common.go:129
↓ 2 callers
Function
formatKeywords
(ks []string)
pkg/search/query.go:340
↓ 2 callers
Function
formatMatch
(t string, matches []search.Match, io *iostreams.IOStreams)
pkg/cmd/search/code/code.go:192
↓ 2 callers
Function
formatNameForVSCSTarget
(name, vscsTarget string)
pkg/cmd/codespace/list.go:193
↓ 2 callers
Function
formatQualifiers
formatQualifiers renders qualifiers into a plain query. The formatter is a custom formatting function that can be used to modify the output of each q
pkg/search/query.go:298
↓ 2 callers
Function
formatRemoteURL
(hostname string, gistID string, protocol string)
pkg/cmd/gist/clone/clone.go:96
↓ 2 callers
Function
formatRequest
(e loggedRequest)
script/ghmock/report.go:222
↓ 2 callers
Function
formatSize
(n int64)
script/ghmock/schemacmd.go:717
↓ 2 callers
Method
generate
generate makes a placeholder value for a schema. Objects get only their required properties. A required property with no schema is null: GitHub's desc
script/ghmock/restscaffold.go:225
↓ 2 callers
Function
generateAutomaticSSHKeys
(sshContext ssh.Context)
pkg/cmd/codespace/ssh.go:409
↓ 2 callers
Function
generateCertificates
(gatewayHost string)
script/api-host-gateway/gateway/main.go:223
↓ 2 callers
Function
generateCompareURL
(ctx CreateContext, state shared.IssueMetadataState, projectsV1Support gh.ProjectsV1Support)
pkg/cmd/pr/create/create.go:1362
↓ 2 callers
Function
generateSSHPublicKey
(comment string)
acceptance/acceptance_test.go:1224
↓ 2 callers
Function
generateScopesSuggestion
(statusCode int, endpointNeedsScopes, tokenHasScopes, hostname string)
api/client.go:362
↓ 2 callers
Method
getAttestations
(params FetchParams)
pkg/cmd/attestation/api/client.go:139
↓ 2 callers
Function
getCallbackURI
(oauthHost string)
internal/authflow/flow.go:138
↓ 2 callers
Function
getCurrentUsername
(username string, hostname string, apiClient *api.Client)
pkg/cmd/pr/status/http.go:189
↓ 2 callers
Function
getDefaultValueDisplayString
(f *pflag.Flag)
internal/docs/markdown.go:82
↓ 2 callers
Function
getExpansion
(opts *SetOptions)
pkg/cmd/alias/set/set.go:165
← previous
next →
1,801–1,900 of 7,572, ranked by callers