MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersMethodDeleteCodespaceCalls
DeleteCodespaceCalls gets all the calls that were made to DeleteCodespace. Check the length with: len(mockedapiClient.DeleteCodespaceCalls())
pkg/cmd/codespace/mock_api.go:370
↓ 1 callersMethodDetailedItem
()
pkg/cmd/project/shared/queries/queries.go:569
↓ 1 callersFunctionDetect
Detect returns the name of the AI coding agent driving the CLI, or an empty AgentName if none is detected.
internal/agents/detect.go:44
↓ 1 callersMethodDisable
Disable leaves telemetry disabled.
internal/telemetry/telemetry.go:507
↓ 1 callersFunctionDisableTelemetryForSubcommands
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:71
↓ 1 callersMethodDisabled
()
pkg/cmd/workflow/shared/shared.go:46
↓ 1 callersMethodDispatchCalls
DispatchCalls gets all the calls that were made to Dispatch. Check the length with: len(mockedExtensionManager.DispatchCalls())
pkg/extensions/manager_mock.go:212
↓ 1 callersMethodDisplayName
DisplayName returns the skill name, prefixed with namespace if present to disambiguate skills from different authors in the same repository. Skills di
internal/skills/discovery/discovery.go:61
↓ 1 callersMethodDisplayName
DisplayName returns a user-friendly name via actorDisplayName.
api/queries_repo.go:1188
↓ 1 callersMethodDisplayName
()
api/queries_repo.go:1218
↓ 1 callersFunctionDisplayWidth
(s string)
internal/text/text.go:34
↓ 1 callersMethodDownload
(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error))
pkg/cmd/run/download/http.go:27
↓ 1 callersMethodDownload
(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error))
pkg/cmd/run/download/download.go:33
↓ 1 callersMethodEdit
(filename, initialValue string)
pkg/cmd/pr/shared/survey.go:390
↓ 1 callersMethodEdit
Edits a codespace
pkg/cmd/codespace/edit.go:47
↓ 1 callersMethodEditCodespace
(ctx context.Context, codespaceName string, params *api.EditCodespaceParams)
pkg/cmd/codespace/common.go:78
↓ 1 callersMethodEditFields
(*shared.Editable, string)
pkg/cmd/pr/edit/edit.go:588
↓ 1 callersFunctionEditFieldsSurvey
(p EditPrompter, editable *Editable, editorCommand string)
pkg/cmd/pr/shared/editable.go:372
↓ 1 callersMethodEditableOptionsFetch
(*api.Client, ghrepo.Interface, *shared.Editable, gh.ProjectsV1Support)
pkg/cmd/pr/edit/edit.go:604
↓ 1 callersMethodEditor
(hostname string)
internal/config/config.go:158
↓ 1 callersMethodEnableDryRunModeCalls
EnableDryRunModeCalls gets all the calls that were made to EnableDryRunMode. Check the length with: len(mockedExtensionManager.EnableDryRunModeCalls
pkg/extensions/manager_mock.go:247
↓ 1 callersMethodEndCursor
()
pkg/cmd/project/shared/queries/queries.go:756
↓ 1 callersFunctionEndpointNeedsScopes
EndpointNeedsScopes adds additional OAuth scopes to an HTTP response as if they were returned from the server endpoint. This improves HTTP 4xx error m
api/client.go:354
↓ 1 callersMethodError
()
pkg/cmd/repo/autolink/list/list_test.go:110
↓ 1 callersMethodError
()
pkg/cmd/repo/autolink/create/create_test.go:114
↓ 1 callersMethodError
()
pkg/cmd/config/get/get.go:82
↓ 1 callersMethodError
()
pkg/cmd/event/listen/listen.go:285
↓ 1 callersMethodError
()
internal/codespaces/codespaces.go:54
↓ 1 callersMethodError
()
internal/prompter/multi_select_with_search.go:395
↓ 1 callersFunctionEventTypeDescription
EventTypeDescription returns the description of the named event type, or an empty string if it is unknown.
pkg/cmd/event/shared/help.go:24
↓ 1 callersMethodExitCode
()
git/client.go:50
↓ 1 callersMethodExitCode
()
pkg/cmd/repo/fork/fork.go:58
↓ 1 callersMethodExperimentalPrompterEnabled
()
pkg/iostreams/iostreams.go:487
↓ 1 callersMethodExpiringCredentials
(hostname string)
internal/config/config.go:188
↓ 1 callersMethodExportData
(fields []string)
pkg/cmd/cache/shared/shared.go:99
↓ 1 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:341
↓ 1 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:514
↓ 1 callersMethodExportData
ExportData implements the cmdutil exportable interface for --json output.
pkg/cmd/repo/read-file/http.go:32
↓ 1 callersMethodExportData
(fields []string)
internal/codespaces/api/api.go:321
↓ 1 callersMethodExportData
(fields []string)
api/export_pr.go:8
↓ 1 callersMethodExportData
(fields []string)
api/export_pr.go:123
↓ 1 callersMethodExportReply
ExportReply returns a reply as a map for JSON output, without nested replies.
pkg/cmd/discussion/client/types.go:221
↓ 1 callersMethodExternalHTTPClient
()
internal/codespaces/codespaces.go:42
↓ 1 callersFunctionExtractHeader
ExtractHeader extracts a named header from any response received by this client and, if non-blank, saves it to dest.
api/http_client.go:260
↓ 1 callersFunctionExtractZip
ExtractZip extracts the contents of a zip archive to destDir. Entries that would escape destDir lexically are skipped.
internal/zip/zip.go:21
↓ 1 callersMethodFetchAttestationsFromGitHubAPI
FetchAttestationsFromGitHubAPI returns true if the command should fetch attestations from the GitHub API It checks that a bundle path is not provided
pkg/cmd/attestation/verify/options.go:58
↓ 1 callersMethodFieldsToEdit
(*shared.Editable)
pkg/cmd/pr/edit/edit.go:587
↓ 1 callersFunctionFillFromJSON
(io *iostreams.IOStreams, recoverFile string, state *IssueMetadataState)
pkg/cmd/pr/shared/state.go:63
↓ 1 callersFunctionFilterAttestationsByFileDigest
(attestations []*api.Attestation, fileDigest string)
pkg/cmd/release/shared/attestation.go:76
↓ 1 callersFunctionFind
Find locates the `sh` interpreter on the system.
pkg/findsh/find.go:8
↓ 1 callersMethodFind
(opts FindOptions)
pkg/cmd/pr/shared/finder.go:111
↓ 1 callersFunctionFindIssuesOrPRs
FindIssuesOrPRs loads 1 or more issues or pull requests with the specified fields. If some of the fields could not be fetched by GraphQL, this returns
pkg/cmd/issue/shared/lookup.go:105
↓ 1 callersFunctionFindRepoBranchID
(client *Client, repo ghrepo.Interface, ref string)
api/queries_branch_issue_reference.go:112
↓ 1 callersMethodFinish
Finish has no payload to complete.
internal/telemetry/telemetry.go:513
↓ 1 callersMethodFlakyOnRESTSuccessWithNextPageHandler
Returns a func that just calls OnRESTSuccessWithNextPage but half the time it returns a 500 error.
pkg/cmd/attestation/api/mock_githubApiClient_test.go:51
↓ 1 callersMethodForwardPort
ForwardPort implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:26
↓ 1 callersMethodForwardPortToListener
(ctx context.Context, opts ForwardPortOpts, listener *net.TCPListener)
internal/codespaces/portforwarder/port_forwarder.go:45
↓ 1 callersMethodGetAttestations
(name name.Reference, digest string)
pkg/cmd/attestation/artifact/oci/client.go:24
↓ 1 callersMethodGetClientActivities
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:71
↓ 1 callersMethodGetCodespaceBillableOwner
(ctx context.Context, nwo string)
pkg/cmd/codespace/common.go:85
↓ 1 callersMethodGetCodespaceRepoSuggestions
(ctx context.Context, partialSearch string, params api.RepoSearchParameters)
pkg/cmd/codespace/common.go:84
↓ 1 callersMethodGetCodespaceRepoSuggestions
GetCodespaceRepoSuggestions searches for and returns repo names based on the provided search text.
internal/codespaces/api/api.go:754
↓ 1 callersMethodGetCodespaceRepositoryContents
(ctx context.Context, codespace *api.Codespace, path string)
pkg/cmd/codespace/common.go:82
↓ 1 callersMethodGetCodespacesMachines
(ctx context.Context, repoID int64, branch string, location string, devcontainerPath string)
pkg/cmd/codespace/common.go:80
↓ 1 callersMethodGetCodespacesPermissionsCheck
(ctx context.Context, repoID int64, branch string, devcontainerPath string)
pkg/cmd/codespace/common.go:81
↓ 1 callersMethodGetImageDigest
(imgName string)
pkg/cmd/attestation/artifact/oci/client.go:23
↓ 1 callersMethodGetJob
(ctx context.Context, owner, repo, jobID string)
pkg/cmd/agent-task/capi/client.go:18
↓ 1 callersMethodGetKeepAliveReason
()
internal/codespaces/portforwarder/port_forwarder.go:51
↓ 1 callersMethodGetLog
()
pkg/cmd/run/view/logs.go:23
↓ 1 callersMethodGetLog
()
pkg/cmd/run/view/logs.go:30
↓ 1 callersMethodGetLog
()
pkg/cmd/run/view/logs.go:41
↓ 1 callersMethodGetNeverPrompt
()
pkg/iostreams/iostreams.go:284
↓ 1 callersFunctionGetOCIAttestations
(client oci.Client, artifact artifact.DigestedArtifact)
pkg/cmd/attestation/verification/attestation.go:84
↓ 1 callersMethodGetPager
()
pkg/iostreams/iostreams.go:213
↓ 1 callersMethodGetPullRequestDatabaseID
(ctx context.Context, hostname string, owner string, repo string, number int)
pkg/cmd/agent-task/capi/client.go:22
↓ 1 callersMethodGetPullRequestDatabaseID
GetPullRequestDatabaseID retrieves the database ID and URL of a pull request given its number in a repository.
pkg/cmd/agent-task/capi/sessions.go:511
↓ 1 callersMethodGetRepository
(ctx context.Context, nwo string)
pkg/cmd/codespace/common.go:79
↓ 1 callersMethodGetSession
(ctx context.Context, id string)
pkg/cmd/agent-task/capi/client.go:19
↓ 1 callersMethodGetUser
(ctx context.Context)
pkg/cmd/codespace/common.go:70
↓ 1 callersFunctionGistPrefix
(hostname string)
internal/ghinstance/host.go:72
↓ 1 callersMethodGitProtocol
(hostname string)
internal/config/config.go:163
↓ 1 callersMethodGreenBold
(t string)
pkg/iostreams/color.go:129
↓ 1 callersMethodHTTP
()
api/client.go:39
↓ 1 callersMethodHTTPUnixSocket
(hostname string)
internal/config/config.go:168
↓ 1 callersMethodHasAuthErrors
()
pkg/cmd/status/status.go:626
↓ 1 callersFunctionHasFailed
HasFailed signals that the main process should exit with non-zero status
pkg/cmd/root/help.go:57
↓ 1 callersMethodHasKeygen
()
pkg/ssh/ssh_keys.go:46
↓ 1 callersMethodHasNextPage
()
pkg/cmd/project/shared/queries/queries.go:755
↓ 1 callersMethodHasTrueColor
()
pkg/iostreams/iostreams.go:115
↓ 1 callersMethodHeadRepo
()
pkg/cmd/pr/create/create.go:158
↓ 1 callersMethodHeadRepos
()
context/context.go:111
↓ 1 callersMethodHelper
()
internal/browser/stub.go:21
↓ 1 callersMethodHiddenReason
()
pkg/cmd/pr/shared/comments.go:21
↓ 1 callersMethodHighlightStart
()
pkg/iostreams/color.go:212
↓ 1 callersFunctionHomeDirPath
(subdir string)
internal/config/config.go:981
↓ 1 callersMethodHosts
()
internal/config/config.go:427
↓ 1 callersMethodID
ID is the id of the ProjectItem.
pkg/cmd/project/shared/queries/queries.go:647
↓ 1 callersFunctionInitEditorMode
(f *cmdutil.Factory, editorMode bool, webMode bool, canPrompt bool)
pkg/cmd/pr/shared/survey.go:426
↓ 1 callersMethodInput
(string, string)
pkg/cmd/pr/shared/editable.go:365
↓ 1 callersMethodInput
(string, string)
pkg/cmd/workflow/run/run.go:47
← previousnext →2,401–2,500 of 7,487, ranked by callers