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
↓ 2 callers
Method
Sys
()
internal/safepaths/link_windows_test.go:170
↓ 2 callers
Function
System
()
pkg/iostreams/iostreams.go:511
↓ 2 callers
Method
TeamsToIDs
(names []string)
api/queries_repo.go:790
↓ 2 callers
Function
TestRunWithWorkflowAndCommit
(workflowId, runId int64, s Status, c Conclusion, commit string)
pkg/cmd/run/shared/test.go:25
↓ 2 callers
Method
Title
Title is the title of the project item.
pkg/cmd/project/shared/queries/queries.go:609
↓ 2 callers
Function
TitleSurvey
(p Prompt, io *iostreams.IOStreams, state *IssueMetadataState)
pkg/cmd/pr/shared/survey.go:116
↓ 2 callers
Function
TitledEditSurvey
(editor Editor)
pkg/cmd/pr/shared/survey.go:411
↓ 2 callers
Method
TokenForUser
TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored token as-is, including the current
internal/config/config.go:714
↓ 2 callers
Function
TranslateRemotes
(gitRemotes git.RemoteSet, translator Translator)
context/remote.go:105
↓ 2 callers
Method
URL
URL is the URL of the project item. Note the draft issues do not have URLs
pkg/cmd/project/shared/queries/queries.go:663
↓ 2 callers
Function
UniqueProjectDirs
UniqueProjectDirs returns the deduplicated set of project-scope skill directories from the Agents list, preserving insertion order.
internal/skills/registry/registry.go:394
↓ 2 callers
Method
Update
Update updates the git credentials for a given hostname, first by rejecting any existing credentials and then approving the new credentials.
pkg/cmd/auth/shared/gitcredentials/updater.go:36
↓ 2 callers
Method
UpdateComment
UpdateComment updates the body of an existing discussion comment or reply.
pkg/cmd/discussion/client/client.go:47
↓ 2 callers
Method
UpdatePortVisibility
(ctx context.Context, remotePort int, visibility string)
internal/codespaces/portforwarder/port_forwarder.go:49
↓ 2 callers
Method
UploadTarget
UploadTarget is IsPullRequest for a command that uploads files with --attach. Its one lookup also returns what an upload needs to know about repo.
pkg/cmd/issue/artifact/client/client.go:29
↓ 2 callers
Method
UploadTargetCalls
UploadTargetCalls gets all the calls that were made to UploadTarget. Check the length with: len(mockedArtifactClient.UploadTargetCalls())
pkg/cmd/issue/artifact/client/client_mock.go:429
↓ 2 callers
Function
UserAssetUploadPrefix
UserAssetUploadPrefix returns the URL prefix for user asset uploads. GHES does not support this endpoint.
internal/ghinstance/host.go:95
↓ 2 callers
Function
UserSigningKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/ssh-key/shared/user_keys.go:50
↓ 2 callers
Method
Validate
()
pkg/cmd/attestation/api/client.go:42
↓ 2 callers
Function
ValidateKey
(key string)
pkg/cmd/config/set/set.go:95
↓ 2 callers
Function
ValidateValue
(key, value string)
pkg/cmd/config/set/set.go:130
↓ 2 callers
Method
Verify
(attestations []*api.Attestation, policy verify.PolicyBuilder)
pkg/cmd/attestation/verification/sigstore.go:281
↓ 2 callers
Method
VerifyAttestation
VerifyAttestation verifies the attestation for a given artifact
pkg/cmd/release/shared/attestation.go:22
↓ 2 callers
Function
VerifyCertExtensions
VerifyCertExtensions allows us to perform case insensitive comparisons of certificate extensions
pkg/cmd/attestation/verification/extensions.go:17
↓ 2 callers
Method
Version
()
internal/config/config.go:203
↓ 2 callers
Method
ViewCodespace
(ctx context.Context, opts *viewOptions)
pkg/cmd/codespace/view.go:55
↓ 2 callers
Method
Warnings
Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in the order they were first recorded. Ca
internal/gh/gh.go:234
↓ 2 callers
Function
WithAdditionalCommonDimensions
WithAdditionalCommonDimensions allows setting additional common dimensions that will be included with every telemetry event recorded by the service.
internal/telemetry/telemetry.go:155
↓ 2 callers
Function
WithStderr
(stderr io.Writer)
git/command.go:73
↓ 2 callers
Method
WithWidth
(width int)
internal/prompter/multi_select_with_search.go:443
↓ 2 callers
Function
WithoutIndentation
()
pkg/markdown/markdown.go:11
↓ 2 callers
Function
WorktreeCheckoutCommands
WorktreeCheckoutCommands returns the commands needed to place branch in target. startPoint must be a remote branch suitable for --track.
pkg/cmd/pr/shared/worktree.go:45
↓ 2 callers
Method
WorktreePrune
WorktreePrune removes administrative files for worktrees that no longer exist on disk.
git/client.go:287
↓ 2 callers
Method
WorktreeRemove
WorktreeRemove removes the worktree at the given path via `git worktree remove <path>`.
git/client.go:276
↓ 2 callers
Method
Write
()
internal/config/config.go:115
↓ 2 callers
Method
WriteCalls
WriteCalls gets all the calls that were made to Write. Check the length with: len(mockedConfig.WriteCalls())
internal/gh/mock/config.go:961
↓ 2 callers
Function
WriteDelims
WriteDelims writes delims in color and with the appropriate indent based on the stack size returned from an io.Writer that implements JsonWriter.Prefa
pkg/jsoncolor/jsoncolor.go:109
↓ 2 callers
Function
WriteFile
WriteFile writes a complete file without traversing symbolic links. Creation permissions follow [OpenFile].
internal/safepaths/root.go:100
↓ 2 callers
Function
_stubPR
(repo, prHead string, number int, title string, state string, isDraft bool)
pkg/cmd/pr/checkout/checkout_test.go:126
↓ 2 callers
Function
acceptanceScriptCandidates
(tsEnv testScriptEnv, command string)
acceptance/acceptance_test.go:848
↓ 2 callers
Function
actions
()
evals/src/cleanup.test.ts:11
↓ 2 callers
Method
activeStyles
()
internal/prompter/multi_select_with_search.go:370
↓ 2 callers
Function
actorsToSearchResult
(actors []api.AssignableActor, totalCount int)
pkg/cmd/pr/shared/editable.go:685
↓ 2 callers
Method
addAuthError
(msg, ssoURL string)
pkg/cmd/status/status.go:611
↓ 2 callers
Function
addAuthHeaderRoundTripper
addAuthHeaderRoundTripper wraps rt so each request receives the token returned by tokenForHost for its (normalized) host, unless the Authorization hea
api/http_client.go:230
↓ 2 callers
Function
addJqFlag
(f *pflag.FlagSet, shorthand string)
pkg/cmdutil/json_flags.go:47
↓ 2 callers
Function
addJsonFlag
(f *pflag.FlagSet)
pkg/cmdutil/json_flags.go:44
↓ 2 callers
Function
addPerPage
(p string, perPage int, params map[string]any)
pkg/cmd/api/pagination.go:94
↓ 2 callers
Function
addRun
(opts *AddOptions)
pkg/cmd/repo/deploy-key/add/add.go:64
↓ 2 callers
Function
addTemplateFlag
(f *pflag.FlagSet, shorthand string)
pkg/cmdutil/json_flags.go:50
↓ 2 callers
Function
afterSuccessfulTool
(config: SessionConfig, action: () => Promise<void>)
evals/src/core/session.ts:4
↓ 2 callers
Function
allowsNull
(s *openapi3.Schema)
script/ghmock/restscaffold.go:382
↓ 2 callers
Function
alternatives
(s *openapi3.Schema)
script/ghmock/restscaffold.go:372
↓ 2 callers
Function
analyse
(evidence: Evidence)
evals/src/suites/events/grading/analysis.ts:24
↓ 2 callers
Function
announce
(args ...string)
script/build.go:230
↓ 2 callers
Function
appendNew
appendNew appends number to numbers, refusing a number already there.
pkg/cmd/issue/artifact/shared/shared.go:194
↓ 2 callers
Function
appendParagraph
appendParagraph joins two pieces of markdown as separate paragraphs.
internal/attachments/attach.go:261
↓ 2 callers
Method
applySearchResult
applySearchResult processes a completed search and rebuilds the option list.
internal/prompter/multi_select_with_search.go:127
↓ 2 callers
Function
applySet
applySet changes one stored response and returns its position.
script/ghmock/set.go:300
↓ 2 callers
Function
archiveRun
(opts *ArchiveOptions)
pkg/cmd/repo/archive/archive.go:68
↓ 2 callers
Method
artifactType
artifactType returns the type of the source's artifact: link for a link, or for a document, the type from --type when typeFlag is set. Without it, a .
pkg/cmd/issue/artifact/create/create.go:86
↓ 2 callers
Function
askedForHelp
askedForHelp reports whether args include a help flag. Commands that take no flags use it, since only a flag set returns flag.ErrHelp on its own.
script/ghmock/main.go:190
↓ 2 callers
Function
attachedSince
(call: Call)
evals/src/suites/events/commands.ts:70
↓ 2 callers
Function
authRecoveryCommand
(cfg gh.Config, httpErr api.HTTPError)
internal/ghcmd/cmd.go:309
↓ 2 callers
Function
authResultFromToken
authResultFromToken projects the OAuth flow's access token and the resolved username onto an AuthResult. A refresh token is present only when the serv
internal/authflow/refresh.go:121
↓ 2 callers
Function
authenticatedCommand
authenticatedCommand builds an authenticated git command, transparently handling a leading -C <path> prefix. AuthenticatedCommand prepends credential-
pkg/cmd/pr/checkout/checkout.go:388
↓ 2 callers
Function
automaticPrivateKeyPath
(sshContext ssh.Context)
pkg/cmd/codespace/ssh.go:695
↓ 2 callers
Function
badRouteError
badRouteError is used when the twirp server cannot route a request
internal/barista/observability/telemetry.twirp.go:896
↓ 2 callers
Function
bodyForWrite
bodyForWrite uploads the assets and reports whether the body it produced is worth writing. A failed upload that produced nothing writes nothing, since
pkg/cmd/pr/shared/commentable.go:348
↓ 2 callers
Method
buildAuthTokenForm
()
internal/prompter/huh_prompter.go:185
↓ 2 callers
Method
buildConfirmDeletionForm
(requiredValue string)
internal/prompter/huh_prompter.go:210
↓ 2 callers
Method
buildConfirmForm
(prompt string, defaultValue bool)
internal/prompter/huh_prompter.go:164
↓ 2 callers
Function
buildDisplayName
buildDisplayName returns display name to be used in the machine survey prompt. prebuildAvailability will be migrated to use enum values: "none", "read
pkg/cmd/codespace/create.go:597
↓ 2 callers
Method
buildInputForm
(prompt, defaultValue string)
internal/prompter/huh_prompter.go:124
↓ 2 callers
Method
buildInputHostnameForm
()
internal/prompter/huh_prompter.go:229
↓ 2 callers
Function
buildInstallPlans
(opts *InstallOptions, selectedSkills []discovery.Skill, selectedHosts []*registry.AgentHost, scope registry.S
pkg/cmd/skills/install/install.go:986
↓ 2 callers
Method
buildMarkdownEditorForm
(prompt string, blankAllowed bool)
internal/prompter/huh_prompter.go:251
↓ 2 callers
Method
buildMultiSelectForm
(prompt string, defaults []string, options []string)
internal/prompter/huh_prompter.go:73
↓ 2 callers
Method
buildPasswordForm
(prompt string)
internal/prompter/huh_prompter.go:142
↓ 2 callers
Function
buildPolicy
(t *testing.T, artifact artifact.DigestedArtifact)
pkg/cmd/attestation/verification/sigstore_integration_test.go:181
↓ 2 callers
Function
buildTree
buildTree constructs a tree structure from flat file paths.
pkg/cmd/skills/preview/preview.go:501
↓ 2 callers
Function
builtinSkillNames
()
evals/src/core/io.ts:22
↓ 2 callers
Method
cachePath
()
script/ghmock/schemafiles.go:88
↓ 2 callers
Function
callClientError
(ctx context.Context, h *twirp.ClientHooks, err twirp.Error)
internal/barista/observability/telemetry.twirp.go:1085
↓ 2 callers
Function
callClientRequestPrepared
(ctx context.Context, h *twirp.ClientHooks, req *http.Request)
internal/barista/observability/telemetry.twirp.go:1078
↓ 2 callers
Function
callClientResponseReceived
(ctx context.Context, h *twirp.ClientHooks)
internal/barista/observability/telemetry.twirp.go:1071
↓ 2 callers
Function
callRequestRouted
Call twirp.ServerHooks.RequestRouted if the hook is available
internal/barista/observability/telemetry.twirp.go:1040
↓ 2 callers
Function
callResponsePrepared
Call twirp.ServerHooks.ResponsePrepared if the hook is available
internal/barista/observability/telemetry.twirp.go:1048
↓ 2 callers
Function
camelCase
camelCase converts a string to camelCase, which is useful for turning Go field names to JSON keys.
pkg/cmd/project/shared/queries/queries.go:1830
↓ 2 callers
Function
camelToKebab
CamelToKebab returns a copy of the string s that is converted from camel case form to '-' separated form.
pkg/search/query.go:354
↓ 2 callers
Function
changedFilesNames
(w io.Writer, r io.Reader)
pkg/cmd/pr/diff/diff.go:319
↓ 2 callers
Function
changelogURL
(version string)
pkg/cmd/version/version.go:48
↓ 2 callers
Method
check
(fp string)
pkg/cmd/release/download/download.go:439
↓ 2 callers
Function
checkGraphQLQuery
checkGraphQLQuery parses gh's query and validates it against the schema. It returns a usable operation even when validation finds non-cyclic problems,
script/ghmock/graphqlcheck.go:30
↓ 2 callers
Function
checkHost
checkHost rejects a host that cannot serve the upload endpoint. IsEnterprise is false for ghe.com tenants, so data residency keeps working.
internal/attachments/client.go:59
↓ 2 callers
Function
checkMaxSize
checkMaxSize rejects a file over the limit for its kind. The limit is inclusive, so the message says at most rather than under.
internal/attachments/userasset.go:162
↓ 2 callers
Method
checkObject
(path string, obj map[string]any, def *ast.Definition, sel ast.SelectionSet, required bool)
script/ghmock/graphqlcheck.go:316
↓ 2 callers
Function
checkParseResult
(t *testing.T, tcase parseTestCase, gotArgs, gotCmd []string, gotErr error)
internal/codespaces/ssh_test.go:126
↓ 2 callers
Method
checkResponse
Response-only saves reconstruct query text, not the original variable payload.
script/ghmock/checker.go:156
↓ 2 callers
Function
checkRun
(opts *CheckOptions)
pkg/cmd/ruleset/check/check.go:105
← previous
next →
1,601–1,700 of 7,487, ranked by callers