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
Method
TokenForUserWithRefresh
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
Method
TokenFromKeyringForUser
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
Method
TrackingBranchNames
(ctx context.Context, prefix string)
git/client.go:710
Method
Translate
(u *url.URL)
context/remote_test.go:98
Method
Translate
(u *url.URL)
pkg/cmd/factory/remote_resolver_test.go:19
Function
TryLock
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
Method
Type
()
pkg/cmdutil/flags.go:92
Method
Type
()
pkg/cmdutil/flags.go:144
Method
Type
()
pkg/cmdutil/flags.go:171
Method
URL
URL returns URL to the global search in web GUI (i.e. github.com/search).
pkg/search/searcher.go:290
Method
URL
URL calls URLFunc.
pkg/search/searcher_mock.go:221
Method
URL
URL calls URLFunc.
pkg/extensions/extension_mock.go:349
Method
URL
Path to executable
pkg/extensions/extension.go:21
Method
URL
()
internal/codespaces/connection/tunnels_api_server_mock.go:282
Method
URLCalls
URLCalls gets all the calls that were made to URL. Check the length with: len(mockedSearcher.URLCalls())
pkg/search/searcher_mock.go:240
Method
URLCalls
URLCalls gets all the calls that were made to URL. Check the length with: len(mockedExtension.URLCalls())
pkg/extensions/extension_mock.go:365
Method
UnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:133
Method
UnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:154
Method
UnqualifiedHeadRef
()
pkg/cmd/pr/create/create.go:177
Method
Unwrap
()
script/ghmock/main.go:182
Method
Unwrap
()
git/errors.go:20
Method
Unwrap
()
git/errors.go:37
Method
Unwrap
()
pkg/cmdutil/errors.go:30
Method
Unwrap
()
pkg/cmd/event/listen/listen.go:286
Method
Unwrap
()
internal/attachments/client.go:201
Method
Unwrap
()
internal/barista/observability/telemetry.twirp.go:841
Method
Unwrap
()
internal/barista/observability/telemetry.twirp.go:881
Method
Update
Update calls UpdateFunc.
pkg/cmd/discussion/client/client_mock.go:724
Method
Update
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
Method
Update
Update calls UpdateFunc.
pkg/cmd/issue/artifact/client/client_mock.go:360
Method
Update
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
Method
Update
(msg tea.Msg)
pkg/cmd/extension/browse/model.go:145
Method
Update
(msg tea.Msg)
internal/prompter/multi_select_with_search.go:219
Method
UpdateAvailable
UpdateAvailable calls UpdateAvailableFunc.
pkg/extensions/extension_mock.go:376
Method
UpdateAvailableCalls
UpdateAvailableCalls gets all the calls that were made to UpdateAvailable. Check the length with: len(mockedExtension.UpdateAvailableCalls())
pkg/extensions/extension_mock.go:392
Method
UpdateBranch
(b, r string)
pkg/cmd/repo/sync/mocks.go:12
Method
UpdateCalls
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
Method
UpdateComment
UpdateComment calls UpdateCommentFunc.
pkg/cmd/discussion/client/client_mock.go:760
Method
UpdateComment
UpdateComment updates the body of an existing discussion comment or reply.
pkg/cmd/discussion/client/client.go:1159
Method
UpdateCommentCalls
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
Method
UpdateDir
(_ string)
cmd/gen-docs/main.go:132
Method
UpdateDirCalls
UpdateDirCalls gets all the calls that were made to UpdateDir. Check the length with: len(mockedExtensionManager.UpdateDirCalls())
pkg/extensions/manager_mock.go:404
Method
UpdatePortVisibility
UpdatePortVisibility changes the visibility (private, org, public) of the specified port.
internal/codespaces/portforwarder/port_forwarder.go:267
Method
Upgrade
(name string, force bool)
pkg/cmd/extension/manager.go:460
Method
Upgrade
Upgrade calls UpgradeFunc.
pkg/extensions/manager_mock.go:417
Method
Upgrade
(_ string, _ bool)
cmd/gen-docs/main.go:114
Method
UploadTarget
UploadTarget calls UploadTargetFunc.
pkg/cmd/issue/artifact/client/client_mock.go:408
Method
UploadTarget
(repo ghrepo.Interface, number int)
pkg/cmd/issue/artifact/client/client.go:73
Method
UpsertDimensions
(dimensions ghtelemetry.Dimensions)
internal/telemetry/fake.go:55
Method
UpsertDimensions
(dimensions ghtelemetry.Dimensions)
internal/telemetry/telemetry.go:373
Method
UpsertDimensions
(ghtelemetry.Dimensions)
internal/telemetry/telemetry.go:492
Method
UpsertMeasures
(measures ghtelemetry.Measures)
internal/telemetry/fake.go:62
Method
UpsertMeasures
(measures ghtelemetry.Measures)
internal/telemetry/telemetry.go:386
Method
UpsertMeasures
(ghtelemetry.Measures)
internal/telemetry/telemetry.go:493
Method
UsersForHost
(hostname string)
pkg/cmd/auth/shared/login_flow_test.go:46
Method
Verify
([]*api.Attestation, verify.PolicyBuilder)
pkg/cmd/attestation/verification/mock_verifier.go:21
Method
Verify
([]*api.Attestation, verify.PolicyBuilder)
pkg/cmd/attestation/verification/mock_verifier.go:64
Method
Verify
()
internal/prompter/test.go:126
Method
VerifyAttestation
(art *artifact.DigestedArtifact, att *api.Attestation)
pkg/cmd/release/shared/attestation.go:32
Method
VerifyAttestation
(art *artifact.DigestedArtifact, att *api.Attestation)
pkg/cmd/release/shared/attestation.go:124
Method
Version
Version returns the current schema version of the configuration.
internal/gh/gh.go:84
Method
Version
Version calls VersionFunc.
internal/gh/mock/config.go:918
Method
VersionCalls
VersionCalls gets all the calls that were made to Version. Check the length with: len(mockedConfig.VersionCalls())
internal/gh/mock/config.go:934
Method
View
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete_test.go:117
Method
View
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/view_test.go:104
Method
View
()
pkg/cmd/extension/browse/model.go:364
Method
View
()
internal/prompter/multi_select_with_search.go:313
Method
Warnings
()
internal/ghcmd/cmd_test.go:708
Method
Warnings
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
Method
WithHeight
(height int)
internal/prompter/multi_select_with_search.go:449
Method
WithKeyMap
(k *huh.KeyMap)
internal/prompter/multi_select_with_search.go:439
Method
WithPosition
(p huh.FieldPosition)
internal/prompter/multi_select_with_search.go:454
Function
WithStdin
(stdin io.Reader)
git/command.go:85
Function
WithStdout
(stdout io.Writer)
git/command.go:79
Method
Worktrees
Worktrees lists the repository's worktrees by parsing the output of `git worktree list --porcelain`.
git/client.go:262
Method
Worktrees
()
pkg/cmd/repo/sync/git.go:38
Method
Worktrees
()
pkg/cmd/repo/sync/mocks.go:17
Method
Write
(p []byte)
script/ghmock/terminal.go:90
Method
Write
(entry *record)
script/api-host-gateway/gateway/main.go:293
Method
Write
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
Method
Write
(p []byte)
pkg/surveyext/editor_test.go:259
Method
Write
(io *iostreams.IOStreams, data any)
pkg/cmd/cache/list/list_test.go:360
Method
Write
(io *iostreams.IOStreams, data any)
pkg/cmd/repo/view/view_test.go:750
Method
Write
(io *iostreams.IOStreams, data any)
pkg/cmd/run/shared/test.go:290
Method
Write
(d []byte)
pkg/iostreams/iostreams.go:620
Method
Write
(b []byte)
internal/codespaces/connection/tunnels_api_server_mock.go:477
Method
Write
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
Method
Write
Write calls WriteFunc.
internal/gh/mock/config.go:945
Method
WriteAnswer
(name string, value any)
pkg/cmd/workflow/run/run.go:198
Function
WriteError
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
Method
Zoom
()
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
Method
actor
()
evals/src/core/trial-cleanup.ts:2
Method
actor
()
evals/src/core/executor.ts:249
Method
agent
()
evals/src/core/trial-cleanup.ts:3
Method
agent
()
evals/src/core/executor.ts:250
Function
baseRepoStubFn
()
pkg/cmd/secret/shared/base_repo_test.go:206
← previous
next →
7,201–7,300 of 7,487, ranked by callers