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
Close
()
pkg/cmd/codespace/ssh.go:151
Method
Close
Close closes the rooted filesystem.
internal/safepaths/root.go:116
Method
Close
Closes the gRPC connection
internal/codespaces/rpc/invoker.go:151
Method
Close
Close implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:16
Method
Close
Close closes the port forwarder's tunnel client connection.
internal/codespaces/portforwarder/port_forwarder.go:352
Method
Close
Close closes the underlying ReadWriteCloser.
internal/codespaces/portforwarder/port_forwarder.go:452
Method
CloseWrite
()
pkg/cmd/codespace/ssh.go:160
Method
Code
(query Query)
pkg/search/searcher.go:65
Method
Code
Code calls CodeFunc.
pkg/search/searcher_mock.go:93
Method
Code
()
internal/barista/observability/telemetry.twirp.go:884
Method
CodeCalls
CodeCalls gets all the calls that were made to Code. Check the length with: len(mockedSearcher.CodeCalls())
pkg/search/searcher_mock.go:112
Function
ColorForIssueState
(issue api.Issue)
pkg/cmd/pr/shared/display.go:44
Function
ColorFuncForSessionState
ColorFuncForSessionState returns a function that colors the session state
pkg/cmd/agent-task/shared/display.go:9
Method
ColorLabels
ColorLabels calls ColorLabelsFunc.
internal/gh/mock/config.go:495
Method
ColorLabelsCalls
ColorLabelsCalls gets all the calls that were made to ColorLabels. Check the length with: len(mockedConfig.ColorLabelsCalls())
internal/gh/mock/config.go:514
Method
CommandOutput
(args []string)
pkg/cmd/extension/git.go:32
Method
CommandOutput
(commandArgs []string)
pkg/cmd/extension/mocks.go:22
Method
Commits
(ctx context.Context, baseRef, headRef string)
git/client.go:360
Method
Commits
(query Query)
pkg/search/searcher.go:105
Method
Commits
Commits calls CommitsFunc.
pkg/search/searcher_mock.go:125
Method
CommitsCalls
CommitsCalls gets all the calls that were made to Commits. Check the length with: len(mockedSearcher.CommitsCalls())
pkg/search/searcher_mock.go:144
Function
Config
Config reads internal debug overrides from the environment. Without the ghdebug build tag it ignores the environment and returns a DebugConfig with no
internal/debug/config_enabled.go:11
Method
Config
(name string)
pkg/cmd/extension/git.go:40
Method
Config
(name string)
pkg/cmd/extension/mocks.go:27
Method
ConfigureOurs
(hostname string)
pkg/cmd/auth/setupgit/setupgit_test.go:23
Method
ConfigureOurs
(string)
pkg/cmd/auth/shared/git_credential_test.go:24
Method
ConfigureOurs
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
pkg/cmd/auth/shared/gitcredentials/fake_helper_config.go:20
Method
ConfiguredHelper
(string)
pkg/cmd/auth/shared/git_credential_test.go:29
Method
ConfiguredHelper
ConfiguredHelper returns the configured git credential helper for a given hostname.
pkg/cmd/auth/shared/gitcredentials/fake_helper_config.go:44
Method
Confirm
(string, bool)
pkg/cmd/release/delete-asset/delete_asset.go:18
Method
Confirm
(string, bool)
pkg/cmd/release/delete/delete.go:19
Method
Confirm
(string, bool)
pkg/cmd/release/create/create.go:28
Method
Confirm
(string, bool)
pkg/cmd/auth/shared/prompt.go:5
Method
Confirm
(string, bool)
pkg/cmd/issue/lock/lock.go:31
Method
Confirm
(string, bool)
pkg/cmd/issue/artifact/delete/delete.go:33
Method
Confirm
(string, bool)
pkg/cmd/repo/delete/delete.go:20
Method
Confirm
(string, bool)
pkg/cmd/repo/fork/fork.go:29
Method
Confirm
(string, bool)
pkg/cmd/repo/create/create.go:36
Method
Confirm
(string, bool)
pkg/cmd/repo/rename/rename.go:22
Method
Confirm
(message string)
pkg/cmd/codespace/delete.go:222
Method
Confirm
Confirm calls ConfirmFunc.
pkg/cmd/codespace/mock_prompter.go:41
Method
Confirm
Confirm calls ConfirmFunc.
internal/prompter/prompter_mock.go:200
Method
Confirm
(prompt string, defaultValue bool)
internal/prompter/huh_prompter.go:176
Method
Confirm
(prompt string, defaultValue bool)
internal/prompter/prompter.go:222
Method
Confirm
(prompt string, defaultValue bool)
internal/prompter/prompter.go:523
Method
ConfirmCalls
ConfirmCalls gets all the calls that were made to Confirm. Check the length with: len(mockedprompter.ConfirmCalls())
pkg/cmd/codespace/mock_prompter.go:60
Method
ConfirmDeletion
(string)
pkg/cmd/label/delete.go:16
Method
ConfirmDeletion
(string)
pkg/cmd/issue/delete/delete.go:29
Method
ConfirmDeletion
ConfirmDeletion calls ConfirmDeletionFunc.
internal/prompter/prompter_mock.go:236
Method
ConfirmDeletion
(requiredValue string)
internal/prompter/huh_prompter.go:225
Method
ConfirmDeletion
(requiredValue string)
internal/prompter/prompter.go:269
Method
ConfirmDeletion
(requiredValue string)
internal/prompter/prompter.go:535
Method
ConfirmDeletion
(prompt string)
internal/prompter/test.go:67
Function
ConfirmIssueSubmission
(p Prompt, allowPreview bool, allowMetadata bool)
pkg/cmd/pr/shared/survey.go:47
Method
Content
()
api/queries_pr_review.go:63
Method
Content
()
api/queries_comments.go:139
Method
Create
Create calls CreateFunc.
pkg/cmd/discussion/client/client_mock.go:296
Method
Create
Create creates a discussion and optionally assigns labels. If the discussion is created successfully but the label mutation fails, the returned discus
pkg/cmd/discussion/client/client.go:966
Method
Create
Create calls CreateFunc.
pkg/cmd/issue/artifact/client/client_mock.go:152
Method
Create
(repo ghrepo.Interface, issueNumber int, artifactType, name, body string)
pkg/cmd/issue/artifact/client/client.go:154
Method
Create
(repo ghrepo.Interface, request AutolinkCreateRequest)
pkg/cmd/repo/autolink/create/create_test.go:99
Method
Create
(name string, tmplType extensions.ExtTemplateType)
pkg/cmd/extension/manager.go:618
Method
Create
Create calls CreateFunc.
pkg/extensions/manager_mock.go:151
Method
Create
(_ string, _ extensions.ExtTemplateType)
cmd/gen-docs/main.go:126
Method
CreateBranch
(branch, ref, upstream string)
pkg/cmd/repo/sync/git.go:42
Method
CreateBranch
(b, r, u string)
pkg/cmd/repo/sync/mocks.go:22
Method
CreateCalls
CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedDiscussionClient.CreateCalls())
pkg/cmd/discussion/client/client_mock.go:317
Method
CreateCodespace
CreateCodespace calls CreateCodespaceFunc.
pkg/cmd/codespace/mock_api.go:309
Method
CreateCodespaceCalls
CreateCodespaceCalls gets all the calls that were made to CreateCodespace. Check the length with: len(mockedapiClient.CreateCodespaceCalls())
pkg/cmd/codespace/mock_api.go:330
Method
CreateJob
CreateJob calls CreateJobFunc.
pkg/cmd/agent-task/capi/client_mock.go:154
Method
CreateJobCalls
CreateJobCalls gets all the calls that were made to CreateJob. Check the length with: len(mockedCapiClient.CreateJobCalls())
pkg/cmd/agent-task/capi/client_mock.go:183
Method
CreateSubscription
CreateSubscription calls CreateSubscriptionFunc.
pkg/cmd/event/client/client_mock.go:107
Method
CreateSubscription
(ctx context.Context, resourceURL string, eventTypes []string)
pkg/cmd/event/client/client.go:70
Method
Created
()
api/queries_pr_review.go:67
Method
Created
()
api/queries_comments.go:143
Method
CurrentBranch
CurrentBranch reads the checked-out branch for the git repository.
git/client.go:216
Method
CurrentBranch
()
pkg/cmd/repo/sync/git.go:59
Method
CurrentBranch
()
pkg/cmd/repo/sync/mocks.go:27
Method
CurrentUserComments
()
api/queries_issue.go:483
Method
CurrentUserComments
()
api/queries_pr.go:324
Method
CurrentUserComments
()
api/queries_comments.go:18
Method
CurrentVersionCalls
CurrentVersionCalls gets all the calls that were made to CurrentVersion. Check the length with: len(mockedExtension.CurrentVersionCalls())
pkg/extensions/extension_mock.go:149
Method
DefaultHost
()
pkg/cmd/status/status_test.go:23
Method
DefaultHost
()
internal/config/config.go:485
Method
Delete
Delete calls DeleteFunc.
pkg/cmd/issue/artifact/client/client_mock.go:200
Method
Delete
Delete ignores the response's body. A successful delete can get 204 No Content, which has none, or 200 with the deleted artifact's number, which the c
pkg/cmd/issue/artifact/client/client.go:146
Method
Delete
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete_test.go:108
Method
Delete
(alias string)
internal/config/config.go:762
Method
DeleteCalls
DeleteCalls gets all the calls that were made to Delete. Check the length with: len(mockedArtifactClient.DeleteCalls())
pkg/cmd/issue/artifact/client/client_mock.go:223
Method
DeleteCodespace
DeleteCodespace calls DeleteCodespaceFunc.
pkg/cmd/codespace/mock_api.go:345
Method
DeleteCodespace
DeleteCodespace deletes the given codespace.
internal/codespaces/api/api.go:1051
Method
DeleteComment
DeleteComment calls DeleteCommentFunc.
pkg/cmd/discussion/client/client_mock.go:332
Method
DeleteComment
DeleteComment deletes a discussion comment or reply.
pkg/cmd/discussion/client/client.go:1211
Method
DeleteCommentCalls
DeleteCommentCalls gets all the calls that were made to DeleteComment. Check the length with: len(mockedDiscussionClient.DeleteCommentCalls())
pkg/cmd/discussion/client/client_mock.go:353
Method
DeleteSubscription
DeleteSubscription calls DeleteSubscriptionFunc.
pkg/cmd/event/client/client_mock.go:147
Method
DeleteSubscription
(ctx context.Context, id string)
pkg/cmd/event/client/client.go:190
Method
DeleteSubscriptionCalls
DeleteSubscriptionCalls gets all the calls that were made to DeleteSubscription. Check the length with: len(mockedEventClient.DeleteSubscriptionCall
pkg/cmd/event/client/client_mock.go:168
Method
Descriptor
Deprecated: Use GetRunningServerRequest.ProtoReflect.Descriptor instead.
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:57
Method
Descriptor
Deprecated: Use GetRunningServerResponse.ProtoReflect.Descriptor instead.
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:100
Method
Descriptor
Deprecated: Use StartRemoteServerRequest.ProtoReflect.Descriptor instead.
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:59
← previous
next →
4,201–4,300 of 7,487, ranked by callers