Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 1 callers
Method
DeleteCodespaceCalls
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 callers
Method
DetailedItem
()
pkg/cmd/project/shared/queries/queries.go:569
↓ 1 callers
Function
Detect
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 callers
Method
Disable
Disable leaves telemetry disabled.
internal/telemetry/telemetry.go:507
↓ 1 callers
Function
DisableTelemetryForSubcommands
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:71
↓ 1 callers
Method
Disabled
()
pkg/cmd/workflow/shared/shared.go:46
↓ 1 callers
Method
DispatchCalls
DispatchCalls gets all the calls that were made to Dispatch. Check the length with: len(mockedExtensionManager.DispatchCalls())
pkg/extensions/manager_mock.go:212
↓ 1 callers
Method
DisplayName
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 callers
Method
DisplayName
DisplayName returns a user-friendly name via actorDisplayName.
api/queries_repo.go:1188
↓ 1 callers
Method
DisplayName
()
api/queries_repo.go:1218
↓ 1 callers
Function
DisplayWidth
(s string)
internal/text/text.go:34
↓ 1 callers
Method
Download
(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error))
pkg/cmd/run/download/http.go:27
↓ 1 callers
Method
Download
(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error))
pkg/cmd/run/download/download.go:33
↓ 1 callers
Method
Edit
(filename, initialValue string)
pkg/cmd/pr/shared/survey.go:390
↓ 1 callers
Method
Edit
Edits a codespace
pkg/cmd/codespace/edit.go:47
↓ 1 callers
Method
EditCodespace
(ctx context.Context, codespaceName string, params *api.EditCodespaceParams)
pkg/cmd/codespace/common.go:78
↓ 1 callers
Method
EditFields
(*shared.Editable, string)
pkg/cmd/pr/edit/edit.go:588
↓ 1 callers
Function
EditFieldsSurvey
(p EditPrompter, editable *Editable, editorCommand string)
pkg/cmd/pr/shared/editable.go:372
↓ 1 callers
Method
EditableOptionsFetch
(*api.Client, ghrepo.Interface, *shared.Editable, gh.ProjectsV1Support)
pkg/cmd/pr/edit/edit.go:604
↓ 1 callers
Method
Editor
(hostname string)
internal/config/config.go:158
↓ 1 callers
Method
EnableDryRunModeCalls
EnableDryRunModeCalls gets all the calls that were made to EnableDryRunMode. Check the length with: len(mockedExtensionManager.EnableDryRunModeCalls
pkg/extensions/manager_mock.go:247
↓ 1 callers
Method
EndCursor
()
pkg/cmd/project/shared/queries/queries.go:756
↓ 1 callers
Function
EndpointNeedsScopes
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 callers
Method
Error
()
pkg/cmd/repo/autolink/list/list_test.go:110
↓ 1 callers
Method
Error
()
pkg/cmd/repo/autolink/create/create_test.go:114
↓ 1 callers
Method
Error
()
pkg/cmd/config/get/get.go:82
↓ 1 callers
Method
Error
()
pkg/cmd/event/listen/listen.go:285
↓ 1 callers
Method
Error
()
internal/codespaces/codespaces.go:54
↓ 1 callers
Method
Error
()
internal/prompter/multi_select_with_search.go:395
↓ 1 callers
Function
EventTypeDescription
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 callers
Method
ExitCode
()
git/client.go:50
↓ 1 callers
Method
ExitCode
()
pkg/cmd/repo/fork/fork.go:58
↓ 1 callers
Method
ExperimentalPrompterEnabled
()
pkg/iostreams/iostreams.go:487
↓ 1 callers
Method
ExpiringCredentials
(hostname string)
internal/config/config.go:188
↓ 1 callers
Method
ExportData
(fields []string)
pkg/cmd/cache/shared/shared.go:99
↓ 1 callers
Method
ExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:341
↓ 1 callers
Method
ExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:514
↓ 1 callers
Method
ExportData
ExportData implements the cmdutil exportable interface for --json output.
pkg/cmd/repo/read-file/http.go:32
↓ 1 callers
Method
ExportData
(fields []string)
internal/codespaces/api/api.go:321
↓ 1 callers
Method
ExportData
(fields []string)
api/export_pr.go:8
↓ 1 callers
Method
ExportData
(fields []string)
api/export_pr.go:123
↓ 1 callers
Method
ExportReply
ExportReply returns a reply as a map for JSON output, without nested replies.
pkg/cmd/discussion/client/types.go:221
↓ 1 callers
Method
ExternalHTTPClient
()
internal/codespaces/codespaces.go:42
↓ 1 callers
Function
ExtractHeader
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 callers
Function
ExtractZip
ExtractZip extracts the contents of a zip archive to destDir. Entries that would escape destDir lexically are skipped.
internal/zip/zip.go:21
↓ 1 callers
Method
FetchAttestationsFromGitHubAPI
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 callers
Method
FieldsToEdit
(*shared.Editable)
pkg/cmd/pr/edit/edit.go:587
↓ 1 callers
Function
FillFromJSON
(io *iostreams.IOStreams, recoverFile string, state *IssueMetadataState)
pkg/cmd/pr/shared/state.go:63
↓ 1 callers
Function
FilterAttestationsByFileDigest
(attestations []*api.Attestation, fileDigest string)
pkg/cmd/release/shared/attestation.go:76
↓ 1 callers
Function
Find
Find locates the `sh` interpreter on the system.
pkg/findsh/find.go:8
↓ 1 callers
Method
Find
(opts FindOptions)
pkg/cmd/pr/shared/finder.go:111
↓ 1 callers
Function
FindIssuesOrPRs
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 callers
Function
FindRepoBranchID
(client *Client, repo ghrepo.Interface, ref string)
api/queries_branch_issue_reference.go:112
↓ 1 callers
Method
Finish
Finish has no payload to complete.
internal/telemetry/telemetry.go:513
↓ 1 callers
Method
FlakyOnRESTSuccessWithNextPageHandler
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 callers
Method
ForwardPort
ForwardPort implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:26
↓ 1 callers
Method
ForwardPortToListener
(ctx context.Context, opts ForwardPortOpts, listener *net.TCPListener)
internal/codespaces/portforwarder/port_forwarder.go:45
↓ 1 callers
Method
GetAttestations
(name name.Reference, digest string)
pkg/cmd/attestation/artifact/oci/client.go:24
↓ 1 callers
Method
GetClientActivities
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:71
↓ 1 callers
Method
GetCodespaceBillableOwner
(ctx context.Context, nwo string)
pkg/cmd/codespace/common.go:85
↓ 1 callers
Method
GetCodespaceRepoSuggestions
(ctx context.Context, partialSearch string, params api.RepoSearchParameters)
pkg/cmd/codespace/common.go:84
↓ 1 callers
Method
GetCodespaceRepoSuggestions
GetCodespaceRepoSuggestions searches for and returns repo names based on the provided search text.
internal/codespaces/api/api.go:754
↓ 1 callers
Method
GetCodespaceRepositoryContents
(ctx context.Context, codespace *api.Codespace, path string)
pkg/cmd/codespace/common.go:82
↓ 1 callers
Method
GetCodespacesMachines
(ctx context.Context, repoID int64, branch string, location string, devcontainerPath string)
pkg/cmd/codespace/common.go:80
↓ 1 callers
Method
GetCodespacesPermissionsCheck
(ctx context.Context, repoID int64, branch string, devcontainerPath string)
pkg/cmd/codespace/common.go:81
↓ 1 callers
Method
GetImageDigest
(imgName string)
pkg/cmd/attestation/artifact/oci/client.go:23
↓ 1 callers
Method
GetJob
(ctx context.Context, owner, repo, jobID string)
pkg/cmd/agent-task/capi/client.go:18
↓ 1 callers
Method
GetKeepAliveReason
()
internal/codespaces/portforwarder/port_forwarder.go:51
↓ 1 callers
Method
GetLog
()
pkg/cmd/run/view/logs.go:23
↓ 1 callers
Method
GetLog
()
pkg/cmd/run/view/logs.go:30
↓ 1 callers
Method
GetLog
()
pkg/cmd/run/view/logs.go:41
↓ 1 callers
Method
GetNeverPrompt
()
pkg/iostreams/iostreams.go:284
↓ 1 callers
Function
GetOCIAttestations
(client oci.Client, artifact artifact.DigestedArtifact)
pkg/cmd/attestation/verification/attestation.go:84
↓ 1 callers
Method
GetPager
()
pkg/iostreams/iostreams.go:213
↓ 1 callers
Method
GetPullRequestDatabaseID
(ctx context.Context, hostname string, owner string, repo string, number int)
pkg/cmd/agent-task/capi/client.go:22
↓ 1 callers
Method
GetPullRequestDatabaseID
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 callers
Method
GetRepository
(ctx context.Context, nwo string)
pkg/cmd/codespace/common.go:79
↓ 1 callers
Method
GetSession
(ctx context.Context, id string)
pkg/cmd/agent-task/capi/client.go:19
↓ 1 callers
Method
GetUser
(ctx context.Context)
pkg/cmd/codespace/common.go:70
↓ 1 callers
Function
GistPrefix
(hostname string)
internal/ghinstance/host.go:72
↓ 1 callers
Method
GitProtocol
(hostname string)
internal/config/config.go:163
↓ 1 callers
Method
GreenBold
(t string)
pkg/iostreams/color.go:129
↓ 1 callers
Method
HTTP
()
api/client.go:39
↓ 1 callers
Method
HTTPUnixSocket
(hostname string)
internal/config/config.go:168
↓ 1 callers
Method
HasAuthErrors
()
pkg/cmd/status/status.go:626
↓ 1 callers
Function
HasFailed
HasFailed signals that the main process should exit with non-zero status
pkg/cmd/root/help.go:57
↓ 1 callers
Method
HasKeygen
()
pkg/ssh/ssh_keys.go:46
↓ 1 callers
Method
HasNextPage
()
pkg/cmd/project/shared/queries/queries.go:755
↓ 1 callers
Method
HasTrueColor
()
pkg/iostreams/iostreams.go:115
↓ 1 callers
Method
HeadRepo
()
pkg/cmd/pr/create/create.go:158
↓ 1 callers
Method
HeadRepos
()
context/context.go:111
↓ 1 callers
Method
Helper
()
internal/browser/stub.go:21
↓ 1 callers
Method
HiddenReason
()
pkg/cmd/pr/shared/comments.go:21
↓ 1 callers
Method
HighlightStart
()
pkg/iostreams/color.go:212
↓ 1 callers
Function
HomeDirPath
(subdir string)
internal/config/config.go:981
↓ 1 callers
Method
Hosts
()
internal/config/config.go:427
↓ 1 callers
Method
ID
ID is the id of the ProjectItem.
pkg/cmd/project/shared/queries/queries.go:647
↓ 1 callers
Function
InitEditorMode
(f *cmdutil.Factory, editorMode bool, webMode bool, canPrompt bool)
pkg/cmd/pr/shared/survey.go:426
↓ 1 callers
Method
Input
(string, string)
pkg/cmd/pr/shared/editable.go:365
↓ 1 callers
Method
Input
(string, string)
pkg/cmd/workflow/run/run.go:47
← previous
next →
2,401–2,500 of 7,487, ranked by callers