MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionvalidateRepoOrTeamFlag
(opts *unlinkOpts)
pkg/cmd/project/unlink/unlink.go:112
↓ 1 callersMethodvalue
(v any, sel ast.SelectionSet)
script/ghmock/trim.go:92
↓ 1 callersMethodverify
(attestation *api.Attestation, policy verify.PolicyBuilder)
pkg/cmd/attestation/verification/sigstore.go:245
↓ 1 callersFunctionverifyCertExtensions
(given, expected certificate.Summary)
pkg/cmd/attestation/verification/extensions.go:43
↓ 1 callersFunctionversionGreaterThan
(v, w string)
internal/update/update.go:180
↓ 1 callersFunctionviewOrgRuleset
(httpClient *http.Client, orgLogin string, databaseId string, host string)
pkg/cmd/ruleset/view/http.go:20
↓ 1 callersFunctionviewRepoRuleset
(httpClient *http.Client, repo ghrepo.Interface, databaseId string)
pkg/cmd/ruleset/view/http.go:12
↓ 1 callersFunctionviewWorkflowContent
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow, ref string)
pkg/cmd/workflow/view/view.go:159
↓ 1 callersFunctionviewWorkflowInfo
(opts *ViewOptions, client *api.Client, repo ghrepo.Interface, workflow *shared.Workflow)
pkg/cmd/workflow/view/view.go:205
↓ 1 callersFunctionvisibilityLabel
(repo search.Repository)
pkg/cmd/search/repos/repos.go:196
↓ 1 callersFunctionvisibilityLabel
(repo api.Repository)
pkg/cmd/repo/list/list.go:248
↓ 1 callersFunctionvisibilityToAccessControlEntries
visibilityToAccessControlEntries converts the given visibility to access control entries that can be used by Dev Tunnels.
internal/codespaces/portforwarder/port_forwarder.go:375
↓ 1 callersFunctionvisit
(directory: string, depth: number)
evals/src/core/sandbox.ts:125
↓ 1 callersFunctionvscodeProtocolURL
(codespaceName string, useInsiders bool)
pkg/cmd/codespace/code.go:64
↓ 1 callersMethodwait
(id: number, timeoutMs: number)
evals/src/suites/events/smoke-protocol.ts:100
↓ 1 callersFunctionwaitFor
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 callersFunctionwaitForEchoDisabled
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 callersFunctionwaitForEnter
(r io.Reader)
pkg/cmd/pr/shared/commentable.go:448
↓ 1 callersFunctionwaitForEnter
(r io.Reader)
internal/authflow/flow.go:173
↓ 1 callersFunctionwaitForExit
(child: ChildProcess)
evals/src/smoke.ts:56
↓ 1 callersMethodwaitForReview
(id: number)
evals/src/suites/events/smoke-protocol.ts:4
↓ 1 callersFunctionwaitForSearch
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 callersMethodwarnIfDiverged
Warn if the pull request and the remote branch have diverged.
pkg/cmd/pr/merge/merge.go:224
↓ 1 callersMethodwarnRefreshFailed
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 callersMethodwarnRejectedKept
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 callersMethodwatchIdle
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 callersFunctionwithAccessToken
(accessToken string)
internal/codespaces/connection/tunnels_api_server_mock.go:276
↓ 1 callersFunctionwithQuery
(e loggedRequest, query string)
script/ghmock/run_test.go:1676
↓ 1 callersFunctionwithSeq
(e loggedRequest, seq int)
script/ghmock/run_test.go:1671
↓ 1 callersFunctionwithin
within reports whether i falls inside any of ranges.
internal/attachments/references.go:590
↓ 1 callersFunctionwithoutAllOf
(s *openapi3.Schema)
script/ghmock/restscaffold.go:376
↓ 1 callersFunctionwithoutPath
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 callersFunctionwords
(text: string)
evals/src/suites/events/grading/observations.ts:48
↓ 1 callersFunctionworkingDirFiles
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 callersFunctionwrapFooter
(footer string, width int)
pkg/cmd/extension/browse/model.go:502
↓ 1 callersMethodwrite
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 callersMethodwrite
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 callersFunctionwriteConfigFixture
(t *testing.T, directory string, files map[string][]byte)
script/ghmock/run_test.go:1216
↓ 1 callersMethodwriteEvent
writeEvent prints a compact JSON event as one line, or formatted with --jq or --template.
pkg/cmd/event/listen/listen.go:504
↓ 1 callersMethodwriteExpiry
(sb *strings.Builder, cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:182
↓ 1 callersFunctionwriteExportArchive
(path string, write func(string) error)
script/ghmock/archive.go:60
↓ 1 callersFunctionwriteExportDir
(st *state, dir string, runs []runRecord, entries []loggedRequest, responses responseSet)
script/ghmock/export.go:100
↓ 1 callersFunctionwriteExportReport
writeExportReport writes what each run printed, after its full command and the schema files it checked against.
script/ghmock/export.go:176
↓ 1 callersFunctionwriteFakeGH
writeFakeGH writes a wrapper that runs the test binary as gh.
script/ghmock/run_test.go:269
↓ 1 callersFunctionwriteFile
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 callersFunctionwriteGHConfig
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 callersFunctionwriteGraphQLField
(w io.Writer, schema *ast.Schema, def *ast.Definition, f *ast.FieldDefinition)
script/ghmock/schemacmd.go:156
↓ 1 callersFunctionwriteGraphQLFields
(w io.Writer, fields ast.FieldList)
script/ghmock/schemacmd.go:143
↓ 1 callersFunctionwriteGraphQLType
(w io.Writer, schema *ast.Schema, def *ast.Definition)
script/ghmock/schemacmd.go:104
↓ 1 callersFunctionwriteJSON
(w http.ResponseWriter, status int, payload any)
script/ghmock/server.go:336
↓ 1 callersFunctionwriteManifest
(dir, name string, data []byte)
pkg/cmd/extension/manager.go:395
↓ 1 callersFunctionwriteProperties
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 callersFunctionwriteSkill
(t *testing.T, baseDir, relDir, content string)
pkg/cmd/skills/list/list_test.go:509
↓ 1 callersFunctionwriteTSV
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 callersFunctionwriteTable
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 callersFunctionwriteTarGzip
(w io.Writer, root string)
script/ghmock/archive.go:88
↓ 1 callersFunctionwriteTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/download/download_test.go:1529
↓ 1 callersFunctionwriteTo
writeTo persists the lock file through an open file handle.
internal/skills/lockfile/lockfile.go:78
↓ 1 callersFunctionwriteZip
(w io.Writer, root string)
script/ghmock/archive.go:16
MethodAPIHostForHost
APIHostForHost never resolves for the same reason as HostForAPIHost.
internal/authflow/flow.go:163
MethodAPIHostForHost
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
MethodAccessibleColors
AccessibleColors calls AccessibleColorsFunc.
internal/gh/mock/config.go:291
MethodAccessibleColorsCalls
AccessibleColorsCalls gets all the calls that were made to AccessibleColors. Check the length with: len(mockedConfig.AccessibleColorsCalls())
internal/gh/mock/config.go:310
MethodAccessiblePrompter
AccessiblePrompter calls AccessiblePrompterFunc.
internal/gh/mock/config.go:323
MethodAccessiblePrompterCalls
AccessiblePrompterCalls gets all the calls that were made to AccessiblePrompter. Check the length with: len(mockedConfig.AccessiblePrompterCalls())
internal/gh/mock/config.go:342
MethodActionsFeatures
()
internal/featuredetection/feature_detection.go:565
MethodActionsFeatures
()
internal/featuredetection/detector_mock.go:35
MethodActionsFeatures
()
internal/featuredetection/detector_mock.go:79
MethodActiveToken
(host string)
api/http_client_test.go:705
MethodActiveTokenType
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
MethodActiveTokenWithRefresh
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:14
MethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/auth/refresh/refresh_test.go:1064
MethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client_test.go:31
MethodActiveTokenWithRefresh
(string)
pkg/cmd/agent-task/capi/job_test.go:22
MethodActiveTokenWithRefresh
(host string)
internal/attachments/client_test.go:55
MethodActiveTokenWithRefresh
(hostname string)
internal/authflow/flow.go:152
MethodActiveTokenWithRefresh
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
MethodActiveTokenWithRefresh
(host string)
api/http_client_test.go:689
MethodActiveUser
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:27
MethodAdd
(alias, expansion string)
internal/config/config.go:807
MethodAddComment
AddComment calls AddCommentFunc.
pkg/cmd/discussion/client/client_mock.go:252
MethodAddComment
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
MethodAddCommentCalls
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
FunctionAdvancedIssueSearchSupportedAsOnlyBackend
()
internal/featuredetection/detector_mock.go:114
FunctionAdvancedIssueSearchSupportedAsOptIn
()
internal/featuredetection/detector_mock.go:108
FunctionAdvancedIssueSearchUnsupported
()
internal/featuredetection/detector_mock.go:102
MethodAliases
()
internal/config/config.go:122
MethodAliases
Aliases calls AliasesFunc.
internal/gh/mock/config.go:355
MethodAliasesCalls
AliasesCalls gets all the calls that were made to Aliases. Check the length with: len(mockedConfig.AliasesCalls())
internal/gh/mock/config.go:371
MethodAll
()
internal/config/config.go:815
MethodAsk
(qs []*survey.Question, response any)
pkg/cmd/codespace/create_test.go:716
MethodAssociation
()
api/queries_pr_review.go:59
MethodAssociation
()
api/queries_comments.go:135
MethodAuthFeatures
AuthFeatures checks the unauthenticated meta endpoint for GHES support.
internal/featuredetection/feature_detection.go:610
MethodAuthFeatures
()
internal/featuredetection/detector_mock.go:39
MethodAuthFeatures
()
internal/featuredetection/detector_mock.go:85
MethodAuthToken
AuthToken calls AuthTokenFunc.
internal/prompter/prompter_mock.go:173
MethodAuthToken
()
internal/prompter/huh_prompter.go:204
MethodAuthToken
()
internal/prompter/prompter.go:245
MethodAuthToken
()
internal/prompter/prompter.go:527
← previousnext →4,101–4,200 of 7,572, ranked by callers