MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

MethodPreVersionCalls
PreVersionCalls gets all the calls that were made to PreVersion. Check the length with: len(mockedMigration.PreVersionCalls())
internal/gh/mock/migration.go:142
MethodPreface
()
pkg/cmd/api/pagination.go:160
MethodPreferEditorPrompt
PreferEditorPrompt calls PreferEditorPromptFunc.
internal/gh/mock/config.go:723
MethodPreferEditorPromptCalls
PreferEditorPromptCalls gets all the calls that were made to PreferEditorPrompt. Check the length with: len(mockedConfig.PreferEditorPromptCalls())
internal/gh/mock/config.go:742
FunctionPrintChecksListenHint
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
FunctionPrintIssues
(io *iostreams.IOStreams, now time.Time, prefix string, totalCount int, issues []api.Issue)
pkg/cmd/issue/shared/display.go:16
MethodPrintf
Printf writes the formatted arguments to the stderr writer.
pkg/cmd/attestation/io/handler.go:33
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:774
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:791
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:808
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:825
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:842
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:859
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:876
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:893
MethodProject
()
pkg/cmd/project/shared/queries/queries.go:910
MethodProjectFeatures
()
internal/featuredetection/detector_mock.go:23
MethodProjectFeatures
()
internal/featuredetection/detector_mock.go:65
MethodProjectsV1
()
internal/featuredetection/feature_detection.go:374
MethodProjectsV1
()
internal/featuredetection/detector_mock.go:19
MethodProjectsV1
()
internal/featuredetection/detector_mock.go:61
MethodPrompt
Prompt calls PromptFunc.
internal/gh/mock/config.go:787
MethodPromptCalls
PromptCalls gets all the calls that were made to Prompt. Check the length with: len(mockedConfig.PromptCalls())
internal/gh/mock/config.go:806
MethodProtoMessage
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:42
MethodProtoMessage
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:85
MethodProtoMessage
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:44
MethodProtoMessage
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:94
MethodProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:45
MethodProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:100
MethodProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:154
MethodProtoMessage
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:201
MethodProtoMessage
()
internal/barista/observability/telemetry.pb.go:50
MethodProtoMessage
()
internal/barista/observability/telemetry.pb.go:117
MethodProtoMessage
()
internal/barista/observability/telemetry.pb.go:161
MethodProtoReflect
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:44
MethodProtoReflect
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:87
MethodProtoReflect
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:46
MethodProtoReflect
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:96
MethodProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:47
MethodProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:102
MethodProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:156
MethodProtoReflect
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:203
MethodProtoReflect
()
internal/barista/observability/telemetry.pb.go:52
MethodProtoReflect
()
internal/barista/observability/telemetry.pb.go:119
MethodProtoReflect
()
internal/barista/observability/telemetry.pb.go:163
MethodProtocGenTwirpVersion
()
internal/barista/observability/telemetry.twirp.go:516
MethodProtocGenTwirpVersion
ProtocGenTwirpVersion is the semantic version string of the version of twirp used to generate this file.
internal/barista/observability/telemetry.twirp.go:562
MethodPull
(remote, branch string)
pkg/cmd/extension/git.go:54
MethodPull
(remote, branch string)
pkg/cmd/extension/mocks.go:45
MethodPullRequestFeatures
()
internal/featuredetection/detector_mock.go:11
MethodPullRequestFeatures
()
internal/featuredetection/detector_mock.go:53
MethodPushDefault
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
MethodPushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:978
MethodPushRevision
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
MethodPushRevision
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:992
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:129
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:147
MethodQualifiedHeadRef
()
pkg/cmd/pr/create/create.go:173
MethodQuery
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:68
MethodQuery
(operationName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:107
MethodQuery
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
MethodREST
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:24
MethodREST
REST performs a REST request and parses the response.
api/client.go:158
MethodRESTWithNext
(hostname, method, p string, body io.Reader, data any)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:20
MethodRESTWithNext
(hostname string, method string, p string, body io.Reader, data any)
api/client.go:167
MethodReactions
()
api/queries_pr_review.go:90
MethodReactions
()
api/queries_comments.go:163
MethodRead
(p []byte)
pkg/cmdutil/file_input_test.go:21
MethodRead
(_ []byte)
pkg/cmd/release/edit/edit_test.go:537
MethodRead
(p []byte)
pkg/cmd/api/pagination_test.go:271
MethodRead
([]byte)
pkg/cmd/event/listen/listen_test.go:201
MethodRead
([]byte)
pkg/iostreams/content_test.go:163
MethodRead
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:450
MethodReadBranchConfig
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
MethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/git_cached_config_client.go:16
MethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder_test.go:971
MethodReadFrom
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
MethodRebuildContainer
Rebuilds the container using cached layers by default or from scratch if full is true
internal/codespaces/rpc/invoker.go:196
MethodRebuildContainerAsync
RebuildContainerAsync calls RebuildContainerAsyncFunc.
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go:108
MethodRebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:46
MethodRebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:60
MethodRebuildContainerAsync
(context.Context, *RebuildContainerRequest)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:71
MethodRebuildContainerAsyncCalls
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
MethodRecord
Record captures a complete event.
internal/telemetry/fake.go:20
MethodRecord
Record copies a complete event into the service. Recording after Finish has no effect.
internal/telemetry/telemetry.go:279
MethodRecord
(event ghtelemetry.Event)
internal/config/refreshable_telemetry_test.go:29
MethodRecordEvents
(_ context.Context, req *observability.RecordEventsRequest)
pkg/cmd/send-telemetry/send_telemetry_test.go:26
MethodRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:87
MethodRecordEvents
(ctx context.Context, in *RecordEventsRequest)
internal/barista/observability/telemetry.twirp.go:179
MethodRefresh
Refresh calls RefreshFunc.
internal/gh/mock/token_refresher.go:49
MethodRegisterAuthToken
(stub func() (string, error))
internal/prompter/test.go:110
MethodRegisterInputHostname
(stub func() (string, error))
internal/prompter/test.go:118
MethodRegisterMarkdownEditor
(prompt string, stub func(string, string, bool) (string, error))
internal/prompter/test.go:122
MethodReleaseFeatures
()
internal/featuredetection/feature_detection.go:531
MethodReleaseFeatures
()
internal/featuredetection/detector_mock.go:31
MethodReleaseFeatures
()
internal/featuredetection/detector_mock.go:73
MethodRemotePushDefault
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
MethodRemotePushDefault
(ctx context.Context)
pkg/cmd/pr/shared/finder_test.go:985
MethodRemotes
(ctx context.Context)
git/client.go:158
MethodRemotes
()
pkg/cmd/extension/git.go:58
← previousnext →4,901–5,000 of 7,572, ranked by callers