Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
Method
PreVersionCalls
PreVersionCalls gets all the calls that were made to PreVersion. Check the length with: len(mockedMigration.PreVersionCalls())
internal/gh/mock/migration.go:142
Method
Preface
()
pkg/cmd/api/pagination.go:160
Method
PreferEditorPrompt
PreferEditorPrompt calls PreferEditorPromptFunc.
internal/gh/mock/config.go:723
Method
PreferEditorPromptCalls
PreferEditorPromptCalls gets all the calls that were made to PreferEditorPrompt. Check the length with: len(mockedConfig.PreferEditorPromptCalls())
internal/gh/mock/config.go:742
Function
PrintChecksListenHint
PrintChecksListenHint suggests `gh event listen` for the check suites of the given pull request URL, because agents tend to poll workflow runs when as
pkg/cmd/event/shared/hint.go:31
Function
PrintIssues
(io *iostreams.IOStreams, now time.Time, prefix string, totalCount int, issues []api.Issue)
pkg/cmd/issue/shared/display.go:16
Method
Printf
Printf writes the formatted arguments to the stderr writer.
pkg/cmd/attestation/io/handler.go:33
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:774
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:791
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:808
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:825
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:842
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:859
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:876
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:893
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:910
Method
ProjectFeatures
()
internal/featuredetection/detector_mock.go:23
Method
ProjectFeatures
()
internal/featuredetection/detector_mock.go:65
Method
ProjectsV1
()
internal/featuredetection/feature_detection.go:374
Method
ProjectsV1
()
internal/featuredetection/detector_mock.go:19
Method
ProjectsV1
()
internal/featuredetection/detector_mock.go:61
Method
Prompt
Prompt calls PromptFunc.
internal/gh/mock/config.go:787
Method
PromptCalls
PromptCalls gets all the calls that were made to Prompt. Check the length with: len(mockedConfig.PromptCalls())
internal/gh/mock/config.go:806
Method
ProtoMessage
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:42
Method
ProtoMessage
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:85
Method
ProtoMessage
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:44
Method
ProtoMessage
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:94
Method
ProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:45
Method
ProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:100
Method
ProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:154
Method
ProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:201
Method
ProtoMessage
()
internal/barista/observability/telemetry.pb.go:50
Method
ProtoMessage
()
internal/barista/observability/telemetry.pb.go:117
Method
ProtoMessage
()
internal/barista/observability/telemetry.pb.go:161
Method
ProtoReflect
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:44
Method
ProtoReflect
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:87
Method
ProtoReflect
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:46
Method
ProtoReflect
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:96
Method
ProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:47
Method
ProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:102
Method
ProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:156
Method
ProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:203
Method
ProtoReflect
()
internal/barista/observability/telemetry.pb.go:52
Method
ProtoReflect
()
internal/barista/observability/telemetry.pb.go:119
Method
ProtoReflect
()
internal/barista/observability/telemetry.pb.go:163
Method
ProtocGenTwirpVersion
()
internal/barista/observability/telemetry.twirp.go:516
Method
ProtocGenTwirpVersion
ProtocGenTwirpVersion is the semantic version string of the version of twirp used to generate this file.
internal/barista/observability/telemetry.twirp.go:562
Method
Pull
(remote, branch string)
pkg/cmd/extension/git.go:54
Method
Pull
(remote, branch string)
pkg/cmd/extension/mocks.go:45
Method
PullRequestFeatures
()
internal/featuredetection/detector_mock.go:11
Method
PullRequestFeatures
()
internal/featuredetection/detector_mock.go:53
Method
PushDefault
PushDefault returns the value of push.default in the config. If the value is not set, it returns "simple" (the default git value). See https://git-scm
git/client.go:532
Method
PushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:978
Method
PushRevision
PushRevision gets the value of the @{push} revision syntax An error here doesn't necessarily mean something is broken, but may mean that the @{push} r
git/client.go:634
Method
PushRevision
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:992
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:129
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:147
Method
QualifiedHeadRef
()
pkg/cmd/pr/create/create.go:173
Method
Query
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:68
Method
Query
(operationName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:107
Method
Query
Query performs a GraphQL query based on a struct and parses the response with the same struct as the receiver. If there are errors in the response, Gr
api/client.go:135
Method
REST
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:24
Method
REST
REST performs a REST request and parses the response.
api/client.go:158
Method
RESTWithNext
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:20
Method
RESTWithNext
(hostname string, method string, p string, body io.Reader, data any)
api/client.go:167
Method
Reactions
()
api/queries_pr_review.go:90
Method
Reactions
()
api/queries_comments.go:163
Method
Read
(p []byte)
pkg/cmdutil/file_input_test.go:21
Method
Read
(_ []byte)
pkg/cmd/release/edit/edit_test.go:537
Method
Read
(p []byte)
pkg/cmd/api/pagination_test.go:271
Method
Read
([]byte)
pkg/cmd/event/listen/listen_test.go:201
Method
Read
([]byte)
pkg/iostreams/content_test.go:163
Method
Read
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:450
Method
ReadBranchConfig
ReadBranchConfig parses the `branch.BRANCH.(remote|merge|pushremote|gh-merge-base)` part of git config. If no branch config is found or there is an er
git/client.go:439
Method
ReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/git_cached_config_client.go:16
Method
ReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:971
Method
ReadFrom
ReadFrom implements io.ReaderFrom to write more data than read, which otherwise results in an error from io.Copy().
pkg/cmd/api/pagination.go:169
Method
RebuildContainer
Rebuilds the container using cached layers by default or from scratch if full is true
internal/codespaces/rpc/invoker.go:196
Method
RebuildContainerAsync
RebuildContainerAsync calls RebuildContainerAsyncFunc.
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:108
Method
RebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:46
Method
RebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:60
Method
RebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:71
Method
RebuildContainerAsyncCalls
RebuildContainerAsyncCalls gets all the calls that were made to RebuildContainerAsync. Check the length with: len(mockedCodespaceHostServer.RebuildC
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:129
Method
Record
Record captures a complete event.
internal/telemetry/fake.go:20
Method
Record
Record copies a complete event into the service. Recording after Finish has no effect.
internal/telemetry/telemetry.go:279
Method
Record
(event ghtelemetry.Event)
internal/config/refreshable_telemetry_test.go:29
Method
RecordEvents
(_ context.Context, req *observability.RecordEventsRequest)
pkg/cmd/send-telemetry/send_telemetry_test.go:26
Method
RecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:87
Method
RecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:179
Method
Refresh
Refresh calls RefreshFunc.
internal/gh/mock/token_refresher.go:49
Method
RegisterAuthToken
(stub func() (string, error))
internal/prompter/test.go:110
Method
RegisterInputHostname
(stub func() (string, error))
internal/prompter/test.go:118
Method
RegisterMarkdownEditor
(prompt string, stub func(string, string, bool) (string, error))
internal/prompter/test.go:122
Method
ReleaseFeatures
()
internal/featuredetection/feature_detection.go:531
Method
ReleaseFeatures
()
internal/featuredetection/detector_mock.go:31
Method
ReleaseFeatures
()
internal/featuredetection/detector_mock.go:73
Method
RemotePushDefault
RemotePushDefault returns the value of remote.pushDefault in the config. If the value is not set, it returns an empty string.
git/client.go:549
Method
RemotePushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:985
Method
Remotes
(ctx context.Context)
git/client.go:158
Method
Remotes
()
pkg/cmd/extension/git.go:58
← previous
next →
4,901–5,000 of 7,572, ranked by callers