MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersFunctionprintTable
(io *iostreams.IOStreams, gists []shared.Gist, filter *regexp.Regexp)
pkg/cmd/gist/list/list.go:153
↓ 1 callersFunctionprintTable
(io *iostreams.IOStreams, checks []check)
pkg/cmd/pr/checks/output.go:94
↓ 1 callersFunctionprintTree
(w io.Writer, cs *iostreams.ColorScheme, nodes []*treeNode, indent string)
pkg/cmd/skills/preview/preview.go:541
↓ 1 callersFunctionprintTreeDir
(w io.Writer, cs *iostreams.ColorScheme, dir, indent string)
pkg/cmd/skills/install/install.go:1156
↓ 1 callersFunctionprintVerifiedSubjects
(io *iostreams.IOStreams, att *verification.AttestationProcessingResult)
pkg/cmd/release/verify/verify.go:196
↓ 1 callersMethodprompt
EXTENDED to augment prompt text and keypress handling
pkg/surveyext/editor.go:68
↓ 1 callersFunctionpromptEdit
promptEdit runs the interactive flow, populating input with user choices. It returns a boolean indicating whether any changes were made, and an error
pkg/cmd/discussion/edit/edit.go:224
↓ 1 callersMethodpromptExpiring
promptExpiring runs the credential-helper decision for an expiring login. gh must be the git credential helper to refresh an expiring token, so the co
pkg/cmd/auth/shared/git_credential.go:98
↓ 1 callersFunctionpromptForJob
(prompter shared.Prompter, cs *iostreams.ColorScheme, jobs []shared.Job)
pkg/cmd/run/view/view.go:556
↓ 1 callersFunctionpromptInstall
promptInstall shows a multi-select picker for the user to choose skills to install from the search results, then runs the install command for each.
pkg/cmd/skills/search/search.go:504
↓ 1 callersFunctionprompterRun
(opts *prompterOptions)
pkg/cmd/preview/prompter/prompter.go:116
↓ 1 callersFunctionpropertyNames
propertyNames lists every key a schema allows, including in oneOf and anyOf alternatives.
script/ghmock/schemacmd.go:575
↓ 1 callersFunctionpublicGoodPolicy
(t *testing.T)
pkg/cmd/attestation/verification/sigstore_integration_test.go:171
↓ 1 callersFunctionpublishedReleaseExists
(httpClient *http.Client, repo ghrepo.Interface, tagName string)
pkg/cmd/release/create/http.go:110
↓ 1 callersFunctionpull
()
evals/src/review-loop.test.ts:21
↓ 1 callersFunctionpullRequestFragment
(conflictStatus bool, statusCheckRollupWithCountByState bool)
pkg/cmd/pr/status/http.go:200
↓ 1 callersFunctionpullRequestResource
(baseRepo ghrepo.Interface, pr *api.PullRequest)
pkg/cmd/pr/view/hint.go:18
↓ 1 callersFunctionpullRequestStatus
(httpClient *http.Client, repo ghrepo.Interface, options requestOptions)
pkg/cmd/pr/status/http.go:32
↓ 1 callersMethodpurgeNonExpiringForRefreshableLogin
purgeNonExpiringForRefreshableLogin removes any non-expiring credential for the user during a refreshable login so the two credential forms cannot coe
internal/config/refreshable.go:216
↓ 1 callersMethodpurgeRefreshableForLogin
purgeRefreshableForLogin removes any refreshable credential for the user during a non-refreshable login so the two credential forms cannot coexist. A
internal/config/refreshable.go:196
↓ 1 callersMethodpushGreeting
(greeting: string, message: string)
evals/src/suites/events/smoke-protocol.ts:5
↓ 1 callersFunctionputEnvSecret
(client *api.Client, pk *PubKey, repo ghrepo.Interface, envName string, secretName, eValue string)
pkg/cmd/secret/set/http.go:130
↓ 1 callersFunctionputOrgSecret
(client *api.Client, host string, pk *PubKey, orgName, visibility, secretName, eValue string, repositoryIDs []
pkg/cmd/secret/set/http.go:85
↓ 1 callersFunctionputRepoSecret
(client *api.Client, pk *PubKey, repo ghrepo.Interface, secretName, eValue string, app shared.App)
pkg/cmd/secret/set/http.go:142
↓ 1 callersFunctionputUserSecret
(client *api.Client, host string, pk *PubKey, key, eValue string, repositoryIDs []int64)
pkg/cmd/secret/set/http.go:117
↓ 1 callersFunctionqueriesFor
queriesFor returns the queries gh sent for a GraphQL request in the most recent run that sent it, once each. Comparing versions can send more than one
script/ghmock/scaffold.go:177
↓ 1 callersFunctionqueryFields
queryFields lists the response paths a query asks for, such as data.repository.issue.title. Fragments are flattened, as they are in the response, and
script/ghmock/trim.go:155
↓ 1 callersFunctionreadBody
(req *http.Request)
pkg/httpmock/stub.go:109
↓ 1 callersFunctionreadContent
readContent returns the new content from --body or --body-file, or nil when neither was given, and the directory a --body-file's references resolve ag
pkg/cmd/issue/artifact/edit/edit.go:261
↓ 1 callersFunctionreadFrom
readFrom loads the lock file from an open file handle. Returns an empty file if the content is empty, corrupt, or incompatible.
internal/skills/lockfile/lockfile.go:53
↓ 1 callersFunctionreadPathFromFile
reads the product of makeSymlink on Windows
pkg/cmd/extension/manager.go:738
↓ 1 callersFunctionreadSkillFile
readSkillFile reads a SKILL.md file only if it resolves to a regular file.
pkg/cmd/skills/list/list.go:369
↓ 1 callersFunctionreadSource
readSource reads an artifact's content and works out its type and name. typeFlag is the type from --type, or empty without it.
pkg/cmd/issue/artifact/create/create.go:359
↓ 1 callersFunctionreadTestLockfile
readTestLockfile is a test helper that reads and parses the lockfile from disk.
internal/skills/lockfile/lockfile_test.go:219
↓ 1 callersFunctionreadZipFile
(t *testing.T, zf *zip.File)
pkg/cmd/run/view/logs_test.go:507
↓ 1 callersFunctionreadyRun
(opts *ReadyOptions)
pkg/cmd/pr/ready/ready.go:66
↓ 1 callersFunctionrecordListTelemetry
(opts *ListOptions, skillCount int)
pkg/cmd/skills/list/list.go:542
↓ 1 callersMethodrecorded
recorded returns every query seen so far, joined for substring matching.
pkg/cmd/issue/edit/edit_test.go:1830
↓ 1 callersMethodredirectTargetIsDir
(parent *os.Root, name string)
internal/safepaths/root.go:454
↓ 1 callersMethodrefreshableFromConfig
(path []string)
internal/config/refreshable.go:260
↓ 1 callersFunctionrelativeFilePath
relativeFilePath converts an absolute file path to a relative one. We expect paths to be of the form: /home/runner/work/<repo-owner>/<repo-name>/path/
pkg/cmd/agent-task/shared/log.go:387
↓ 1 callersFunctionrelativeToNow
relativeToNow renders a fuzzy, human readable description of when t occurs relative to the current time, for annotating the absolute expiry timestamp.
pkg/cmd/auth/status/status.go:79
↓ 1 callersFunctionrelevanceScore
relevanceScore computes a numeric ranking score for a search result. Higher scores rank first. Signals (in priority order): - Exact skill name match (
pkg/cmd/skills/search/search.go:613
↓ 1 callersMethodreload
reload re-reads the config from disk into the shared config, using the reloadConfig seam when set and the real ghConfig.Reload otherwise. The producti
internal/config/refreshable.go:133
↓ 1 callersFunctionrelockLockable
relockLockable will unlock then lock an issue or pull request. A common use case would be to change the reason for locking. The current api doesn't
pkg/cmd/issue/lock/lock.go:355
↓ 1 callersFunctionremoteForMergeConflictResolution
(baseRepo ghrepo.Interface, pr *api.PullRequest, opts *MergeOptions)
pkg/cmd/pr/merge/merge.go:807
↓ 1 callersFunctionremoteNameSortScore
(name string)
git/objects.go:17
↓ 1 callersFunctionremoteNameSortScore
(name string)
context/remote.go:60
↓ 1 callersFunctionremoteSkillFrontmatter
(name, sourcePath, ref, pinned string)
pkg/cmd/skills/list/list_test.go:516
↓ 1 callersFunctionremoteTagExists
(httpClient *http.Client, repo ghrepo.Interface, tagName string)
pkg/cmd/release/create/http.go:41
↓ 1 callersFunctionremoteTagExists
(httpClient *http.Client, repo ghrepo.Interface, tagName string)
pkg/cmd/release/edit/http.go:39
↓ 1 callersFunctionremoteURL
(repo *api.Repository, protocol string)
pkg/cmd/repo/clone/clone.go:245
↓ 1 callersMethodremoveCredentialForUser
removeCredentialForUser deletes every stored credential record for the user on the host, covering both the refreshable and the non-expiring forms in b
internal/config/refreshable.go:529
↓ 1 callersFunctionremoveLabels
(httpClient *http.Client, id string, repo ghrepo.Interface, labels []string)
pkg/cmd/pr/shared/editable_http.go:169
↓ 1 callersFunctionremoveLegacyFromCodeloadPath
removeLegacyFromCodeloadPath converts URLs for "legacy" Codeload archives into ones that match the format when you choose to download "Source code (zi
pkg/cmd/release/download/download.go:371
↓ 1 callersFunctionrenderAllFiles
renderAllFiles dumps the tree, SKILL.md, and all extra files through the pager.
pkg/cmd/skills/preview/preview.go:267
↓ 1 callersFunctionrenderContentAsJSONMarkdown
renderContentAsJSONMarkdown tries to unmarshal the given content as JSON, wrap that content in a markdown JSON code block, and render it as markdown.
pkg/cmd/agent-task/shared/log.go:275
↓ 1 callersFunctionrenderDiagnosticsPlain
(opts *PublishOptions, diagnostics []publishDiagnostic, errors, warnings int)
pkg/cmd/skills/publish/publish.go:1112
↓ 1 callersFunctionrenderDiagnosticsTTY
(opts *PublishOptions, skillCount int, diagnostics []publishDiagnostic, errors, warnings, fixes int, owner, re
pkg/cmd/skills/publish/publish.go:1050
↓ 1 callersFunctionrenderGenericToolCall
(w io.Writer, cs *iostreams.ColorScheme, name string)
pkg/cmd/agent-task/shared/log.go:487
↓ 1 callersFunctionrenderGitIgnore
(licenseTemplate *api.GitIgnore, opts *ViewOptions)
pkg/cmd/repo/gitignore/view/view.go:101
↓ 1 callersFunctionrenderGitIgnoreTemplatesTable
(gitIgnoreTemplates []string, opts *ListOptions)
pkg/cmd/repo/gitignore/list/list.go:73
↓ 1 callersFunctionrenderInteractive
renderInteractive shows the file tree, then a picker to browse individual files.
pkg/cmd/skills/preview/preview.go:318
↓ 1 callersFunctionrenderLicense
(license *api.License, opts *ViewOptions)
pkg/cmd/repo/license/view/view.go:117
↓ 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:1163
↓ 1 callersFunctionrenderPullRequestTTY
(io *iostreams.IOStreams, params map[string]any, state *shared.IssueMetadataState)
pkg/cmd/pr/create/create.go:1192
↓ 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:231
↓ 1 callersFunctionrenderSelectedFilePreview
(opts *PreviewOptions, filePath, content string)
pkg/cmd/skills/preview/preview.go:384
↓ 1 callersFunctionrenderTable
renderTable outputs a formatted table of skill results.
pkg/cmd/skills/search/search.go:482
↓ 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:236
↓ 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:1387
↓ 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
← previousnext →3,701–3,800 of 7,487, ranked by callers