MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionrenderLicensesTable
(licenses []api.License, opts *ListOptions)
pkg/cmd/repo/license/list/list.go:79
↓ 1 callersMethodrenderLoadedReadme
()
pkg/cmd/extension/browse/model.go:637
↓ 1 callersFunctionrenderLogEntry
(entry chatCompletionChunkEntry, w io.Writer, io *iostreams.IOStreams)
pkg/cmd/agent-task/shared/log.go:91
↓ 1 callersMethodrenderOption
(o msOption, cursor, selected bool)
internal/prompter/multi_select_with_search.go:351
↓ 1 callersFunctionrenderPullRequestPlain
(w io.Writer, params map[string]any, state *shared.IssueMetadataState)
pkg/cmd/pr/create/create.go:1162
↓ 1 callersFunctionrenderPullRequestTTY
(io *iostreams.IOStreams, params map[string]any, state *shared.IssueMetadataState)
pkg/cmd/pr/create/create.go:1191
↓ 1 callersFunctionrenderReleasePlain
(w io.Writer, release *shared.Release)
pkg/cmd/release/view/view.go:179
↓ 1 callersFunctionrenderReleaseTTY
(io *iostreams.IOStreams, release *shared.Release)
pkg/cmd/release/view/view.go:131
↓ 1 callersFunctionrenderResults
renderResults handles all output modes: JSON, interactive picker, or table.
pkg/cmd/skills/search/search.go:441
↓ 1 callersFunctionrenderRun
(out io.Writer, opts WatchOptions, client *api.Client, repo ghrepo.Interface, run *shared.Run, prNumber string
pkg/cmd/run/watch/watch.go:236
↓ 1 callersFunctionrenderSelectedFilePreview
(opts *PreviewOptions, filePath, content string)
pkg/cmd/skills/preview/preview.go:384
↓ 1 callersFunctionrenewingRefresher
renewingRefresher renews any refresh token to a fresh, long-lived credential whose access token is "new-access".
pkg/cmd/auth/refresh/refresh_test.go:1028
↓ 1 callersFunctionrenewingRefresher
renewingRefresher returns a mock that renews to a fresh, long lived credential and records its calls.
pkg/cmd/auth/token/token_test.go:527
↓ 1 callersFunctionreopenRun
(opts *ReopenOptions)
pkg/cmd/issue/reopen/reopen.go:69
↓ 1 callersFunctionreopenRun
(opts *ReopenOptions)
pkg/cmd/pr/reopen/reopen.go:54
↓ 1 callersFunctionreplaceAll
replaceAll replaces all instances of old with new in s, as well as all instances of the JSON-escaped version of old with the JSON-escaped version of n
pkg/cmd/auth/status/status_test.go:1150
↓ 1 callersFunctionreplaceIssueFields
(httpClient *http.Client, repo ghrepo.Interface, id string, isPR bool, options Editable)
pkg/cmd/pr/shared/editable_http.go:94
↓ 1 callersFunctionreplay
(path: string)
evals/src/replay.ts:26
↓ 1 callersFunctionrepoFromPath
(gitClient gitClient, path string)
pkg/cmd/extension/manager.go:773
↓ 1 callersFunctionrepoHasTopic
repoHasTopic checks whether the repo has the agent-skills topic.
pkg/cmd/skills/publish/publish.go:444
↓ 1 callersFunctionrepoInfo
(r api.Repository)
pkg/cmd/repo/list/list.go:235
↓ 1 callersFunctionrequestNames
requestNames lists the names of the requests gh made, once each, in order.
script/ghmock/scaffold.go:127
↓ 1 callersFunctionrequestPayloads
requestPayloads preserves field boundaries when comparing request data.
script/ghmock/report.go:445
↓ 1 callersFunctionrequestableReviewersForCompletion
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:1386
↓ 1 callersFunctionrequireKeyExists
(t *testing.T, cfg *config.Config, keys []string)
internal/config/migration/multi_account_test.go:227
↓ 1 callersFunctionrequireNoKey
(t *testing.T, cfg *config.Config, keys []string)
internal/config/migration/multi_account_test.go:243
↓ 1 callersFunctionrequireOAuthToken
requireOAuthToken ensures an OAuth (device flow) token is present and valid. agent-task subcommands inherit this check via PersistentPreRunE.
pkg/cmd/agent-task/agent_task.go:72
↓ 1 callersFunctionrequireSchemas
requireSchemas loads the schemas that scaffolding the targets needs. Unlike checks, scaffolding can't go ahead without them.
script/ghmock/scaffold.go:142
↓ 1 callersFunctionrequired
(name: string)
evals/src/smoke.ts:29
↓ 1 callersFunctionrequired
(name: string)
evals/src/core/executor.ts:26
↓ 1 callersFunctionrerunJob
(client *api.Client, repo ghrepo.Interface, job *shared.Job, debug bool)
pkg/cmd/run/rerun/rerun.go:217
↓ 1 callersFunctionrerunRun
(client *api.Client, repo ghrepo.Interface, run *shared.Run, onlyFailed, debug bool)
pkg/cmd/run/rerun/rerun.go:190
↓ 1 callersFunctionreset
()
evals/src/github.test.ts:5
↓ 1 callersMethodresizeFilter
()
pkg/cmd/extension/browse/model.go:736
↓ 1 callersFunctionresolveAliasTarget
resolveAliasTarget returns the command a user-defined alias expands to, or command unchanged when it is not an alias or the target cannot be resolved.
pkg/cmd/root/help.go:358
↓ 1 callersFunctionresolveCommentNodeID
resolveCommentNodeID returns the comment node ID for the current invocation, resolving it from a comment database ID (parsed from a comment URL) when
pkg/cmd/discussion/view/view.go:226
↓ 1 callersFunctionresolveCredential
resolveCredential returns the credential gh should present for the host and optional user (an empty username means the active account), refreshing an
pkg/cmd/auth/status/status.go:540
↓ 1 callersFunctionresolveDefaultBranch
(client *api.Client, host, owner, repo string)
internal/skills/discovery/discovery.go:395
↓ 1 callersFunctionresolveExplicitRef
resolveExplicitRef resolves a user-supplied version string. It supports: - fully qualified refs: "refs/tags/v1.0" or "refs/heads/main" - short names:
internal/skills/discovery/discovery.go:264
↓ 1 callersFunctionresolveFieldColumns
resolveFieldColumns turns the --field (names) and --field-id (node IDs) flags into ordered column descriptors. Names are resolved with ResolveFieldByN
pkg/cmd/project/item-list/item_list.go:201
↓ 1 callersFunctionresolveGitPath
()
git/client.go:956
↓ 1 callersFunctionresolveInstallDir
(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string)
pkg/cmd/skills/install/install.go:1010
↓ 1 callersFunctionresolveItemEditNames
resolveItemEditNames turns the name-based addressing flags into the node IDs used by the field-value mutations: it resolves the project from owner + n
pkg/cmd/project/item-edit/item_edit.go:263
↓ 1 callersFunctionresolveLatestRelease
(client *api.Client, host, owner, repo string)
internal/skills/discovery/discovery.go:370
↓ 1 callersFunctionresolveOrganizationTeam
(client *api.Client, hostname, orgName, teamSlug string)
pkg/cmd/repo/create/http.go:280
↓ 1 callersFunctionresolveOwner
(client *api.Client, hostname, orgName string)
pkg/cmd/repo/create/http.go:262
↓ 1 callersFunctionresolveRepoArg
(skillSource string, canPrompt bool, p prompter.Prompter)
pkg/cmd/skills/install/install.go:567
↓ 1 callersFunctionresolveUsername
(authCfg gh.AuthConfig, hostname, username string)
pkg/cmd/auth/token/token.go:171
↓ 1 callersFunctionresolveVersion
(opts *InstallOptions, client *api.Client, hostname string)
pkg/cmd/skills/install/install.go:610
↓ 1 callersFunctionresolveWorktreeTarget
resolveWorktreeTarget asks git where path lives, letting git resolve symlinks, "..", case, and trailing slashes for us instead of comparing paths ours
pkg/cmd/pr/shared/worktree.go:69
↓ 1 callersFunctionresponseHasBody
(method string, status int)
script/ghmock/server.go:264
↓ 1 callersFunctionrestEntry
(run, name string)
script/ghmock/scaffold_test.go:84
↓ 1 callersFunctionrestoreBackup
restoreBackup undoes a partial swap by removing any freshly installed entries and moving the original entries back from backup into dest.
pkg/cmd/skills/update/update.go:565
↓ 1 callersFunctionrestoreVersion
restoreVersion saves the name and body of version opts.RestoreVersion as a new version. They are sent as the API returned them, so the server checks t
pkg/cmd/issue/artifact/edit/edit.go:231
↓ 1 callersFunctionrevParseFacts
(client *git.Client, dir string, flags ...string)
pkg/cmd/pr/shared/worktree.go:100
↓ 1 callersFunctionrevertRun
(opts *RevertOptions)
pkg/cmd/pr/revert/revert.go:85
↓ 1 callersFunctionreviewReadAt
(call: GhCall, action: Action, expected?: Record<string, unknown>)
evals/src/suites/events/grading/observations.ts:54
↓ 1 callersFunctionreviewRun
(opts *ReviewOptions)
pkg/cmd/pr/review/review.go:148
↓ 1 callersFunctionreviewSurvey
(opts *ReviewOptions)
pkg/cmd/pr/review/review.go:204
↓ 1 callersFunctionreviewerSearchFunc
reviewerSearchFunc is intended to be an arg for MultiSelectWithSearch to return potential reviewer candidates (users, bots, and teams). It also update
pkg/cmd/pr/edit/edit.go:454
↓ 1 callersFunctionrewriteResponse
rewriteResponse replaces the upstream host with the gateway host everywhere it appears, so that clients following URLs the API handed them stay on the
script/api-host-gateway/gateway/main.go:193
↓ 1 callersFunctionright
()
internal/prompter/huh_prompter_test.go:89
↓ 1 callersFunctionrmrf
(targets ...string)
script/build.go:219
↓ 1 callersFunctionrootHelpFunc
(f *cmdutil.Factory, command *cobra.Command, _ []string)
pkg/cmd/root/help.go:92
↓ 1 callersFunctionroute
(resource: string, ...extra: string[])
evals/src/graders.test.ts:222
↓ 1 callersFunctionrouteMethods
(item *openapi3.PathItem)
script/ghmock/schemacmd.go:328
↓ 1 callersFunctionrpad
rpad adds padding to the right of a string.
pkg/cmd/root/help.go:299
↓ 1 callersFunctionrun
(args ...string)
script/build.go:234
↓ 1 callersFunctionrun
(listen, gatewayHost, upstreamHost, upstreamAddr, caOut, logOut, readyOut string)
script/api-host-gateway/gateway/main.go:74
↓ 1 callersFunctionrun
(...args: string[])
evals/src/harness.test.ts:729
↓ 1 callersFunctionrun
evals/src/smoke.ts:188
↓ 1 callersMethodrun
(t *testing.T, w *io.PipeWriter)
internal/prompter/huh_prompter_test.go:35
↓ 1 callersFunctionrunAdd
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:244
↓ 1 callersFunctionrunBinary
runBinary runs one gh binary in its own scratch folder. With ca, gh uses github.com and trusts only ca; without it, gh uses github.localhost.
script/ghmock/run.go:280
↓ 1 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/repo/list/list_test.go:348
↓ 1 callersFunctionrunDelete
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:165
↓ 1 callersFunctionrunEdit
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:188
↓ 1 callersFunctionrunGitCommands
(client *git.Client, commands [][]string)
pkg/cmd/issue/develop/develop.go:422
↓ 1 callersFunctionrunInTerminal
runInTerminal starts cmd in a pseudo-terminal, so gh can prompt as it does for a user, and types each keys entry once the screen settles. It returns c
script/ghmock/terminal.go:25
↓ 1 callersFunctionrunLocalInstall
runLocalInstall handles installation from a local directory path.
pkg/cmd/skills/install/install.go:474
↓ 1 callersFunctionrunPublishRelease
runPublishRelease handles the interactive publish flow: topic, tag, release, immutability.
pkg/cmd/skills/publish/publish.go:477
↓ 1 callersFunctionrunReply
(opts *CommentOptions, c client.DiscussionClient, baseRepo ghrepo.Interface)
pkg/cmd/discussion/comment/comment.go:215
↓ 1 callersFunctionrunRepoSearchTest
(t *testing.T, searchText, wantQueryText, wantSort, wantMaxRepos string)
internal/codespaces/api/api_test.go:499
↓ 1 callersFunctionrunTestGrpcServer
runTestGrpcServer serves grpc requests over the provided Listener using the mockServer for mocked callbacks. It does not return until the Context is c
internal/codespaces/rpc/invoker_test.go:39
↓ 1 callersFunctionrunTests
runTests keeps tests away from the network and the real cache folder. Tests that need schemas call useTestSchemas.
script/ghmock/run_test.go:42
↓ 1 callersMethodrunning
running returns whether the codespace environment is running.
pkg/cmd/codespace/common.go:231
↓ 1 callersFunctionsafeClose
(closer io.Closer, err *error)
internal/codespaces/states.go:134
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/list/list_test.go:683
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/create/create_test.go:462
↓ 1 callersFunctionsampleCategories
()
pkg/cmd/discussion/edit/edit_test.go:638
↓ 1 callersFunctionsampleComment
()
pkg/cmd/discussion/comment/comment_test.go:705
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/comment/comment_test.go:696
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/create/create_test.go:470
↓ 1 callersFunctionsampleDiscussion
()
pkg/cmd/discussion/edit/edit_test.go:646
↓ 1 callersFunctionsampleResult
()
pkg/cmd/discussion/list/list_test.go:676
↓ 1 callersFunctionsanitizeForTerminal
sanitizeForTerminal replaces ASCII control characters in s with inert caret-style stand-ins so frontmatter values cannot inject terminal escapes.
pkg/cmd/skills/list/list.go:516
↓ 1 callersMethodscaffold
scaffold builds a success response for a REST request from GitHub's description. It starts from GitHub's example. About one in five examples lag behin
script/ghmock/restscaffold.go:22
↓ 1 callersFunctionscaffoldGraphQL
scaffoldGraphQL adds a response built from gh's query, or adds the fields gh asked for to stored responses that lack them. explicit is true when the c
script/ghmock/scaffold.go:208
↓ 1 callersFunctionscaffoldREST
scaffoldREST adds a response for a REST request from GitHub's description. A request that already has a response is left alone: ghmock set checks REST
script/ghmock/scaffold.go:335
↓ 1 callersMethodscalar
scalar makes a placeholder for a scalar field. Strings hold the field's name, so gh's output shows where each value came from.
script/ghmock/gqlscaffold.go:199
← previousnext →3,801–3,900 of 7,572, ranked by callers