MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

↓ 1 callersFunctionprintLog
(w io.Writer, entries []loggedRequest, full bool)
script/ghmock/log.go:102
↓ 1 callersFunctionprintLogs
(opts *ViewOptions, capiClient capi.CapiClient, sessionID string)
pkg/cmd/agent-task/view/view.go:370
↓ 1 callersFunctionprintNotes
(w io.Writer, notes []string)
script/ghmock/report.go:50
↓ 1 callersMethodprintOpenSSHConfig
(ctx context.Context, opts sshOptions)
pkg/cmd/codespace/ssh.go:552
↓ 1 callersFunctionprintOptions
(w io.Writer, cmd *cobra.Command)
internal/docs/markdown.go:38
↓ 1 callersFunctionprintOutput
(w io.Writer, label, text string)
script/ghmock/report.go:195
↓ 1 callersFunctionprintProblems
printProblems lists what the schema checks found, request by request.
script/ghmock/report.go:150
↓ 1 callersFunctionprintPrs
(io *iostreams.IOStreams, totalCount int, prs ...api.PullRequest)
pkg/cmd/pr/status/status.go:230
↓ 1 callersFunctionprintRawArtifact
printRawArtifact prints key lines in a fixed order, then the body after a "--" line, like gh issue view. Null values print as empty fields, so every a
pkg/cmd/issue/artifact/view/view.go:189
↓ 1 callersFunctionprintRawComments
printRawComments writes the comments as a sequence of metadata blocks, without any discussion-level fields or nested replies. Comments are printed in
pkg/cmd/discussion/view/view.go:482
↓ 1 callersFunctionprintRawIssuePreview
(out io.Writer, issue *api.Issue)
pkg/cmd/issue/view/view.go:204
↓ 1 callersFunctionprintRawPrPreview
(io *iostreams.IOStreams, pr *api.PullRequest)
pkg/cmd/pr/view/view.go:167
↓ 1 callersFunctionprintRawReplies
printRawReplies writes the replies of a comment as a sequence of metadata blocks, without any fields of the parent comment. Replies are printed in chr
pkg/cmd/discussion/view/view.go:649
↓ 1 callersFunctionprintRawView
(out io.Writer, d *client.Discussion)
pkg/cmd/discussion/view/view.go:460
↓ 1 callersFunctionprintResult
(w io.Writer, command string, res runResult)
script/ghmock/report.go:60
↓ 1 callersFunctionprintResults
(config closeConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/close/close.go:126
↓ 1 callersFunctionprintResults
(config copyConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/copy/copy.go:137
↓ 1 callersFunctionprintResults
(config markTemplateConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/mark-template/mark_template.go:153
↓ 1 callersFunctionprintResults
(config deleteFieldConfig, field queries.ProjectField)
pkg/cmd/project/field-delete/field_delete.go:87
↓ 1 callersFunctionprintResults
(config listConfig, fields []queries.ProjectField, login string)
pkg/cmd/project/field-list/field_list.go:103
↓ 1 callersFunctionprintResults
(config deleteConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/delete/delete.go:118
↓ 1 callersFunctionprintResults
(config viewConfig, project *queries.Project)
pkg/cmd/project/view/view.go:107
↓ 1 callersFunctionprintResults
(config createFieldConfig, field queries.ProjectField)
pkg/cmd/project/field-create/field_create.go:145
↓ 1 callersFunctionprintResults
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:119
↓ 1 callersFunctionprintResults
(config addItemConfig, item queries.ProjectItem)
pkg/cmd/project/item-add/item_add.go:126
↓ 1 callersFunctionprintResults
(config listConfig, items []queries.ProjectItem, login string, extraFields []fieldColumn)
pkg/cmd/project/item-list/item_list.go:223
↓ 1 callersFunctionprintResults
(config listConfig, projects queries.Projects, owner string)
pkg/cmd/project/list/list.go:155
↓ 1 callersFunctionprintResults
(config archiveItemConfig, item queries.ProjectItem)
pkg/cmd/project/item-archive/item_archive.go:148
↓ 1 callersFunctionprintResults
(config createConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/create/create.go:107
↓ 1 callersFunctionprintResults
(config createItemConfig, item queries.ProjectItem)
pkg/cmd/project/item-create/item_create.go:122
↓ 1 callersFunctionprintResults
(config editConfig, project queries.ProjectMutationQuery)
pkg/cmd/project/edit/edit.go:147
↓ 1 callersFunctionprintSession
(opts *ViewOptions, session *capi.Session)
pkg/cmd/agent-task/view/view.go:303
↓ 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:1143
↓ 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:559
↓ 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:28
↓ 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:217
↓ 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:197
↓ 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 callersMethodrecordRefreshAttempt
recordRefreshAttempt records the auth_token_refresh event for a refresh attempt against hostname. It records nothing when no recorder is set or when h
internal/config/refreshable_telemetry.go:132
↓ 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 callersFunctionrefreshLockState
refreshLockState classifies the error from acquiring the refresh lock for the refresh_lock dimension.
internal/config/refreshable_telemetry.go:92
↓ 1 callersFunctionrefreshStorageType
(secure bool)
internal/config/refreshable_telemetry.go:118
↓ 1 callersMethodrefreshTelemetryCommand
refreshTelemetryCommand returns the command path set by SetTelemetryCommand, or "unknown" when a refresh happens before the command is resolved.
internal/config/refreshable_telemetry.go:160
↓ 1 callersMethodrefreshableFromConfig
(path []string)
internal/config/refreshable.go:261
↓ 1 callersFunctionrejectingRefresher
(onRefresh func())
internal/config/refreshable_telemetry_test.go:41
↓ 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 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:686
↓ 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 callersMethodremoveRejectedCredential
removeRejectedCredential removes the user's stored credential after the server rejected its refresh token, and records the outcome on attempt. secure
internal/config/refreshable.go:654
↓ 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 iostreams.Untrusted)
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
← previousnext →3,701–3,800 of 7,572, ranked by callers