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
↓ 1 callers
Function
validateRepoOrTeamFlag
(opts *unlinkOpts)
pkg/cmd/project/unlink/unlink.go:112
↓ 1 callers
Method
value
(v any, sel ast.SelectionSet)
script/ghmock/trim.go:92
↓ 1 callers
Method
verify
(attestation *api.Attestation, policy verify.PolicyBuilder)
pkg/cmd/attestation/verification/sigstore.go:245
↓ 1 callers
Function
verifyCertExtensions
(given, expected certificate.Summary)
pkg/cmd/attestation/verification/extensions.go:43
↓ 1 callers
Function
versionGreaterThan
(v, w string)
internal/update/update.go:180
↓ 1 callers
Function
viewOrgRuleset
(httpClient *http.Client, orgLogin string, databaseId string, host string)
pkg/cmd/ruleset/view/http.go:20
↓ 1 callers
Function
viewRepoRuleset
(httpClient *http.Client, repo ghrepo.Interface, databaseId string)
pkg/cmd/ruleset/view/http.go:12
↓ 1 callers
Function
viewWorkflowContent
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow, ref string)
pkg/cmd/workflow/view/view.go:159
↓ 1 callers
Function
viewWorkflowInfo
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow)
pkg/cmd/workflow/view/view.go:205
↓ 1 callers
Function
visibilityLabel
(repo search.Repository)
pkg/cmd/search/repos/repos.go:196
↓ 1 callers
Function
visibilityLabel
(repo api.Repository)
pkg/cmd/repo/list/list.go:248
↓ 1 callers
Function
visibilityToAccessControlEntries
visibilityToAccessControlEntries converts the given visibility to access control entries that can be used by Dev Tunnels.
internal/codespaces/portforwarder/port_forwarder.go:375
↓ 1 callers
Function
visit
(directory: string, depth: number)
evals/src/core/sandbox.ts:125
↓ 1 callers
Function
vscodeProtocolURL
(codespaceName string, useInsiders bool)
pkg/cmd/codespace/code.go:64
↓ 1 callers
Method
wait
(id: number, timeoutMs: number)
evals/src/suites/events/smoke-protocol.ts:100
↓ 1 callers
Function
waitFor
waitFor waits until gh exits, the context ends or ready returns true. It reports whether gh exited, storing cmd.Wait's error in waitErr.
script/ghmock/terminal.go:107
↓ 1 callers
Function
waitForEchoDisabled
waitForEchoDisabled polls the TTY until echo mode is disabled or the timeout is reached. This is used in password and auth token tests to ensure that
internal/prompter/accessible_prompter_test.go:963
↓ 1 callers
Function
waitForEnter
(r io.Reader)
pkg/cmd/pr/shared/commentable.go:448
↓ 1 callers
Function
waitForEnter
(r io.Reader)
internal/authflow/flow.go:173
↓ 1 callers
Function
waitForExit
(child: ChildProcess)
evals/src/smoke.ts:56
↓ 1 callers
Method
waitForReview
(id: number)
evals/src/suites/events/smoke-protocol.ts:4
↓ 1 callers
Function
waitForSearch
waitForSearch returns an interactionStep that blocks until the field's current async search completes. It wires a one-shot callback into the field's o
internal/prompter/huh_prompter_test.go:122
↓ 1 callers
Method
warnIfDiverged
Warn if the pull request and the remote branch have diverged.
pkg/cmd/pr/merge/merge.go:224
↓ 1 callers
Method
warnRefreshFailed
warnRefreshFailed warns that refreshing the expiring token failed with err and the current token is used as is. Callers of the refreshing token method
internal/config/refreshable.go:599
↓ 1 callers
Method
warnRejectedKept
warnRejectedKept warns that the server rejected the refresh token while gh did not hold the refresh lock, so the stored credential was kept and the ca
internal/config/refreshable.go:636
↓ 1 callers
Method
watchIdle
watchIdle closes body when it delivers no data, not even a heartbeat, for the idle timeout, so a connection that died without being closed is detected
pkg/cmd/event/listen/listen.go:431
↓ 1 callers
Function
withAccessToken
(accessToken string)
internal/codespaces/connection/tunnels_api_server_mock.go:276
↓ 1 callers
Function
withQuery
(e loggedRequest, query string)
script/ghmock/run_test.go:1676
↓ 1 callers
Function
withSeq
(e loggedRequest, seq int)
script/ghmock/run_test.go:1671
↓ 1 callers
Function
within
within reports whether i falls inside any of ranges.
internal/attachments/references.go:590
↓ 1 callers
Function
withoutAllOf
(s *openapi3.Schema)
script/ghmock/restscaffold.go:376
↓ 1 callers
Function
withoutPath
withoutPath drops the path from a file system error about the file itself, since the result line already names it. Such an error can name the file by
pkg/cmd/issue/artifact/download/download.go:485
↓ 1 callers
Function
words
(text: string)
evals/src/suites/events/grading/observations.ts:48
↓ 1 callers
Function
workingDirFiles
workingDirFiles returns everything in the working directory, with slash-separated paths: a file's content, "" for a directory, whose path ends in "/",
pkg/cmd/issue/artifact/download/download_test.go:1547
↓ 1 callers
Function
wrapFooter
(footer string, width int)
pkg/cmd/extension/browse/model.go:502
↓ 1 callers
Method
write
write writes an artifact's file at path, and reports whether it skipped path instead. It checks path first, as gh release download does before downloa
pkg/cmd/issue/artifact/download/download.go:399
↓ 1 callers
Method
write
Records stream output. Malformed output fails the current and later waits instead of throwing, because this * runs in a stream callback, where a th
evals/src/suites/events/smoke-protocol.ts:73
↓ 1 callers
Function
writeConfigFixture
(t *testing.T, directory string, files map[string][]byte)
script/ghmock/run_test.go:1216
↓ 1 callers
Method
writeEvent
writeEvent prints a compact JSON event as one line, or formatted with --jq or --template.
pkg/cmd/event/listen/listen.go:504
↓ 1 callers
Method
writeExpiry
(sb *strings.Builder, cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:182
↓ 1 callers
Function
writeExportArchive
(path string, write func(string) error)
script/ghmock/archive.go:60
↓ 1 callers
Function
writeExportDir
(st *state, dir string, runs []runRecord, entries []loggedRequest, responses responseSet)
script/ghmock/export.go:100
↓ 1 callers
Function
writeExportReport
writeExportReport writes what each run printed, after its full command and the schema files it checked against.
script/ghmock/export.go:176
↓ 1 callers
Function
writeFakeGH
writeFakeGH writes a wrapper that runs the test binary as gh.
script/ghmock/run_test.go:269
↓ 1 callers
Function
writeFile
writeFile creates a file of the given size relative to the test's working directory. Truncate makes a sparse file, so a size over the image limit cost
internal/attachments/userasset_test.go:17
↓ 1 callers
Function
writeGHConfig
writeGHConfig writes gh's config the way gh auth login --insecure-storage leaves it, logged in to host as fakeUser with fakeToken. That's where a user
script/ghmock/run.go:484
↓ 1 callers
Function
writeGraphQLField
(w io.Writer, schema *ast.Schema, def *ast.Definition, f *ast.FieldDefinition)
script/ghmock/schemacmd.go:156
↓ 1 callers
Function
writeGraphQLFields
(w io.Writer, fields ast.FieldList)
script/ghmock/schemacmd.go:143
↓ 1 callers
Function
writeGraphQLType
(w io.Writer, schema *ast.Schema, def *ast.Definition)
script/ghmock/schemacmd.go:104
↓ 1 callers
Function
writeJSON
(w http.ResponseWriter, status int, payload any)
script/ghmock/server.go:336
↓ 1 callers
Function
writeManifest
(dir, name string, data []byte)
pkg/cmd/extension/manager.go:395
↓ 1 callers
Function
writeProperties
writeProperties lists an object's properties, or those of each item in a list of objects, with the ones a response must include first.
script/ghmock/schemacmd.go:517
↓ 1 callers
Function
writeSkill
(t *testing.T, baseDir, relDir, content string)
pkg/cmd/skills/list/list_test.go:509
↓ 1 callers
Function
writeTSV
writeTSV writes a tab-separated listing for non-TTY output: type, name, octal mode, and raw byte size, with no header.
pkg/cmd/repo/read-dir/read_dir.go:154
↓ 1 callers
Function
writeTable
writeTable writes the TTY listing as a TYPE/NAME/SIZE table. Names are colored by entry type and directories and submodules show "-" since git reports
pkg/cmd/repo/read-dir/read_dir.go:166
↓ 1 callers
Function
writeTarGzip
(w io.Writer, root string)
script/ghmock/archive.go:88
↓ 1 callers
Function
writeTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/download/download_test.go:1529
↓ 1 callers
Function
writeTo
writeTo persists the lock file through an open file handle.
internal/skills/lockfile/lockfile.go:78
↓ 1 callers
Function
writeZip
(w io.Writer, root string)
script/ghmock/archive.go:16
Method
APIHostForHost
APIHostForHost never resolves for the same reason as HostForAPIHost.
internal/authflow/flow.go:163
Method
APIHostForHost
APIHostForHost returns the api_host configured for host, reporting false when the host has no api_host set. It is the inverse of HostForAPIHost.
internal/config/config.go:460
Method
AccessibleColors
AccessibleColors calls AccessibleColorsFunc.
internal/gh/mock/config.go:291
Method
AccessibleColorsCalls
AccessibleColorsCalls gets all the calls that were made to AccessibleColors. Check the length with: len(mockedConfig.AccessibleColorsCalls())
internal/gh/mock/config.go:310
Method
AccessiblePrompter
AccessiblePrompter calls AccessiblePrompterFunc.
internal/gh/mock/config.go:323
Method
AccessiblePrompterCalls
AccessiblePrompterCalls gets all the calls that were made to AccessiblePrompter. Check the length with: len(mockedConfig.AccessiblePrompterCalls())
internal/gh/mock/config.go:342
Method
ActionsFeatures
()
internal/featuredetection/feature_detection.go:565
Method
ActionsFeatures
()
internal/featuredetection/detector_mock.go:35
Method
ActionsFeatures
()
internal/featuredetection/detector_mock.go:79
Method
ActiveToken
(host string)
api/http_client_test.go:705
Method
ActiveTokenType
ActiveTokenType reports what kind of credential the active token is, so a caller that only needs to know that can avoid handling the token. It is curr
internal/config/config.go:326
Method
ActiveTokenWithRefresh
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:14
Method
ActiveTokenWithRefresh
(hostname string)
pkg/cmd/auth/refresh/refresh_test.go:1064
Method
ActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client_test.go:31
Method
ActiveTokenWithRefresh
(string)
pkg/cmd/agent-task/capi/job_test.go:22
Method
ActiveTokenWithRefresh
(host string)
internal/attachments/client_test.go:55
Method
ActiveTokenWithRefresh
(hostname string)
internal/authflow/flow.go:152
Method
ActiveTokenWithRefresh
ActiveTokenWithRefresh retrieves the active credential for the given hostname and, when it is refreshable and its access token is expiring, renews and
internal/config/config.go:377
Method
ActiveTokenWithRefresh
(host string)
api/http_client_test.go:689
Method
ActiveUser
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:27
Method
Add
(alias, expansion string)
internal/config/config.go:807
Method
AddComment
AddComment calls AddCommentFunc.
pkg/cmd/discussion/client/client_mock.go:252
Method
AddComment
AddComment adds a comment to a discussion. If replyToID is non-empty, the comment is created as a reply to that comment.
pkg/cmd/discussion/client/client.go:1101
Method
AddCommentCalls
AddCommentCalls gets all the calls that were made to AddComment. Check the length with: len(mockedDiscussionClient.AddCommentCalls())
pkg/cmd/discussion/client/client_mock.go:277
Function
AdvancedIssueSearchSupportedAsOnlyBackend
()
internal/featuredetection/detector_mock.go:114
Function
AdvancedIssueSearchSupportedAsOptIn
()
internal/featuredetection/detector_mock.go:108
Function
AdvancedIssueSearchUnsupported
()
internal/featuredetection/detector_mock.go:102
Method
Aliases
()
internal/config/config.go:122
Method
Aliases
Aliases calls AliasesFunc.
internal/gh/mock/config.go:355
Method
AliasesCalls
AliasesCalls gets all the calls that were made to Aliases. Check the length with: len(mockedConfig.AliasesCalls())
internal/gh/mock/config.go:371
Method
All
()
internal/config/config.go:815
Method
Ask
(qs []*survey.Question, response any)
pkg/cmd/codespace/create_test.go:716
Method
Association
()
api/queries_pr_review.go:59
Method
Association
()
api/queries_comments.go:135
Method
AuthFeatures
AuthFeatures checks the unauthenticated meta endpoint for GHES support.
internal/featuredetection/feature_detection.go:610
Method
AuthFeatures
()
internal/featuredetection/detector_mock.go:39
Method
AuthFeatures
()
internal/featuredetection/detector_mock.go:85
Method
AuthToken
AuthToken calls AuthTokenFunc.
internal/prompter/prompter_mock.go:173
Method
AuthToken
()
internal/prompter/huh_prompter.go:204
Method
AuthToken
()
internal/prompter/prompter.go:245
Method
AuthToken
()
internal/prompter/prompter.go:527
← previous
next →
4,101–4,200 of 7,572, ranked by callers