MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

MethodTokenForUserWithRefresh
TokenForUserWithRefresh retrieves the credential for a specified user and hostname and, when it is refreshable and its access token is expiring, renew
internal/config/config.go:735
MethodTokenFromKeyringForUser
TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching in encrypted storage. An empty username will
internal/config/config.go:413
MethodTrackingBranchNames
(ctx context.Context, prefix string)
git/client.go:710
MethodTranslate
(u *url.URL)
context/remote_test.go:98
MethodTranslate
(u *url.URL)
pkg/cmd/factory/remote_resolver_test.go:19
FunctionTryLock
TryLock attempts to acquire an exclusive, non-blocking lock on the given path. Returns the locked file and an unlock function on success. The caller s
internal/flock/flock_windows.go:16
MethodType
()
pkg/cmdutil/flags.go:92
MethodType
()
pkg/cmdutil/flags.go:144
MethodType
()
pkg/cmdutil/flags.go:171
MethodURL
URL returns URL to the global search in web GUI (i.e. github.com/search).
pkg/search/searcher.go:290
MethodURL
URL calls URLFunc.
pkg/search/searcher_mock.go:221
MethodURL
URL calls URLFunc.
pkg/extensions/extension_mock.go:349
MethodURL
Path to executable
pkg/extensions/extension.go:21
MethodURL
()
internal/codespaces/connection/tunnels_api_server_mock.go:282
MethodURLCalls
URLCalls gets all the calls that were made to URL. Check the length with: len(mockedSearcher.URLCalls())
pkg/search/searcher_mock.go:240
MethodURLCalls
URLCalls gets all the calls that were made to URL. Check the length with: len(mockedExtension.URLCalls())
pkg/extensions/extension_mock.go:365
MethodUnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:133
MethodUnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:154
MethodUnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:177
MethodUnwrap
()
script/ghmock/main.go:182
MethodUnwrap
()
git/errors.go:20
MethodUnwrap
()
git/errors.go:37
MethodUnwrap
()
pkg/cmdutil/errors.go:30
MethodUnwrap
()
pkg/cmd/event/listen/listen.go:286
MethodUnwrap
()
internal/attachments/client.go:201
MethodUnwrap
()
internal/barista/observability/telemetry.twirp.go:841
MethodUnwrap
()
internal/barista/observability/telemetry.twirp.go:881
MethodUpdate
Update calls UpdateFunc.
pkg/cmd/discussion/client/client_mock.go:724
MethodUpdate
Update updates a discussion's fields and/or labels. If field updates succeed but the label mutation fails, the returned discussion is non-nil (reflect
pkg/cmd/discussion/client/client.go:1026
MethodUpdate
Update calls UpdateFunc.
pkg/cmd/issue/artifact/client/client_mock.go:360
MethodUpdate
Update sends only the fields it changes, since the API keeps any field a request leaves out.
pkg/cmd/issue/artifact/client/client.go:182
MethodUpdate
(msg tea.Msg)
pkg/cmd/extension/browse/model.go:145
MethodUpdate
(msg tea.Msg)
internal/prompter/multi_select_with_search.go:219
MethodUpdateAvailable
UpdateAvailable calls UpdateAvailableFunc.
pkg/extensions/extension_mock.go:376
MethodUpdateAvailableCalls
UpdateAvailableCalls gets all the calls that were made to UpdateAvailable. Check the length with: len(mockedExtension.UpdateAvailableCalls())
pkg/extensions/extension_mock.go:392
MethodUpdateBranch
(b, r string)
pkg/cmd/repo/sync/mocks.go:12
MethodUpdateCalls
UpdateCalls gets all the calls that were made to Update. Check the length with: len(mockedDiscussionClient.UpdateCalls())
pkg/cmd/discussion/client/client_mock.go:745
MethodUpdateComment
UpdateComment calls UpdateCommentFunc.
pkg/cmd/discussion/client/client_mock.go:760
MethodUpdateComment
UpdateComment updates the body of an existing discussion comment or reply.
pkg/cmd/discussion/client/client.go:1159
MethodUpdateCommentCalls
UpdateCommentCalls gets all the calls that were made to UpdateComment. Check the length with: len(mockedDiscussionClient.UpdateCommentCalls())
pkg/cmd/discussion/client/client_mock.go:783
MethodUpdateDir
(_ string)
cmd/gen-docs/main.go:132
MethodUpdateDirCalls
UpdateDirCalls gets all the calls that were made to UpdateDir. Check the length with: len(mockedExtensionManager.UpdateDirCalls())
pkg/extensions/manager_mock.go:404
MethodUpdatePortVisibility
UpdatePortVisibility changes the visibility (private, org, public) of the specified port.
internal/codespaces/portforwarder/port_forwarder.go:267
MethodUpgrade
(name string, force bool)
pkg/cmd/extension/manager.go:460
MethodUpgrade
Upgrade calls UpgradeFunc.
pkg/extensions/manager_mock.go:417
MethodUpgrade
(_ string, _ bool)
cmd/gen-docs/main.go:114
MethodUploadTarget
UploadTarget calls UploadTargetFunc.
pkg/cmd/issue/artifact/client/client_mock.go:408
MethodUploadTarget
(repo ghrepo.Interface, number int)
pkg/cmd/issue/artifact/client/client.go:73
MethodUpsertDimensions
(dimensions ghtelemetry.Dimensions)
internal/telemetry/fake.go:55
MethodUpsertDimensions
(dimensions ghtelemetry.Dimensions)
internal/telemetry/telemetry.go:373
MethodUpsertDimensions
(ghtelemetry.Dimensions)
internal/telemetry/telemetry.go:492
MethodUpsertMeasures
(measures ghtelemetry.Measures)
internal/telemetry/fake.go:62
MethodUpsertMeasures
(measures ghtelemetry.Measures)
internal/telemetry/telemetry.go:386
MethodUpsertMeasures
(ghtelemetry.Measures)
internal/telemetry/telemetry.go:493
MethodUsersForHost
(hostname string)
pkg/cmd/auth/shared/login_flow_test.go:46
MethodVerify
([]*api.Attestation, verify.PolicyBuilder)
pkg/cmd/attestation/verification/mock_verifier.go:21
MethodVerify
([]*api.Attestation, verify.PolicyBuilder)
pkg/cmd/attestation/verification/mock_verifier.go:64
MethodVerify
()
internal/prompter/test.go:126
MethodVerifyAttestation
(art *artifact.DigestedArtifact, att *api.Attestation)
pkg/cmd/release/shared/attestation.go:32
MethodVerifyAttestation
(art *artifact.DigestedArtifact, att *api.Attestation)
pkg/cmd/release/shared/attestation.go:124
MethodVersion
Version returns the current schema version of the configuration.
internal/gh/gh.go:84
MethodVersion
Version calls VersionFunc.
internal/gh/mock/config.go:918
MethodVersionCalls
VersionCalls gets all the calls that were made to Version. Check the length with: len(mockedConfig.VersionCalls())
internal/gh/mock/config.go:934
MethodView
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete_test.go:117
MethodView
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/view_test.go:104
MethodView
()
pkg/cmd/extension/browse/model.go:364
MethodView
()
internal/prompter/multi_select_with_search.go:313
MethodWarnings
()
internal/ghcmd/cmd_test.go:708
MethodWarnings
Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in the order they were first recorded. Ca
internal/config/config.go:278
MethodWithHeight
(height int)
internal/prompter/multi_select_with_search.go:449
MethodWithKeyMap
(k *huh.KeyMap)
internal/prompter/multi_select_with_search.go:439
MethodWithPosition
(p huh.FieldPosition)
internal/prompter/multi_select_with_search.go:454
FunctionWithStdin
(stdin io.Reader)
git/command.go:85
FunctionWithStdout
(stdout io.Writer)
git/command.go:79
MethodWorktrees
Worktrees lists the repository's worktrees by parsing the output of `git worktree list --porcelain`.
git/client.go:262
MethodWorktrees
()
pkg/cmd/repo/sync/git.go:38
MethodWorktrees
()
pkg/cmd/repo/sync/mocks.go:17
MethodWrite
(p []byte)
script/ghmock/terminal.go:90
MethodWrite
(entry *record)
script/api-host-gateway/gateway/main.go:293
MethodWrite
Write serializes data into JSON output written to w. If the object passed as data implements exportable, or if data is a map or slice of exportable ob
pkg/cmdutil/json_flags.go:225
MethodWrite
(p []byte)
pkg/surveyext/editor_test.go:259
MethodWrite
(io *iostreams.IOStreams, data any)
pkg/cmd/cache/list/list_test.go:360
MethodWrite
(io *iostreams.IOStreams, data any)
pkg/cmd/repo/view/view_test.go:750
MethodWrite
(io *iostreams.IOStreams, data any)
pkg/cmd/run/shared/test.go:290
MethodWrite
(d []byte)
pkg/iostreams/iostreams.go:620
MethodWrite
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:477
MethodWrite
Write wraps the underlying ReadWriteCloser's Write method and keeps the session alive with the "output" traffic type.
internal/codespaces/portforwarder/port_forwarder.go:446
MethodWrite
Write calls WriteFunc.
internal/gh/mock/config.go:945
MethodWriteAnswer
(name string, value any)
pkg/cmd/workflow/run/run.go:198
FunctionWriteError
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but d
internal/barista/observability/telemetry.twirp.go:591
MethodZoom
()
internal/prompter/multi_select_with_search.go:397
Function_CodespaceHost_NotifyCodespaceOfClientActivity_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:87
Function_CodespaceHost_RebuildContainerAsync_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:105
Function_JupyterServerHost_GetRunningServer_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1_grpc.pb.go:73
Function_SshServerHost_StartRemoteServerAsync_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:73
Methodactor
()
evals/src/core/trial-cleanup.ts:2
Methodactor
()
evals/src/core/executor.ts:249
Methodagent
()
evals/src/core/trial-cleanup.ts:3
Methodagent
()
evals/src/core/executor.ts:250
FunctionbaseRepoStubFn
()
pkg/cmd/secret/shared/base_repo_test.go:206
← previousnext →7,201–7,300 of 7,487, ranked by callers