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
AuthToken
()
internal/prompter/test.go:57
Method
AuthTokenCalls
AuthTokenCalls gets all the calls that were made to AuthToken. Check the length with: len(mockedPrompter.AuthTokenCalls())
internal/prompter/prompter_mock.go:189
Method
Authentication
()
pkg/cmd/auth/refresh/refresh_test.go:1056
Method
Authentication
Authentication returns the single AuthConfig instance associated with this config. A single instance is returned so that dependencies supplied after c
internal/config/config.go:129
Method
Authentication
Authentication calls AuthenticationFunc.
internal/gh/mock/config.go:382
Method
AuthorLogin
()
api/queries_pr_review.go:55
Method
AuthorLogin
()
api/queries_comments.go:131
Method
BaseRef
()
pkg/cmd/pr/create/create.go:114
Method
BaseRepo
(io *iostreams.IOStreams)
context/context.go:61
Method
BaseRepo
()
pkg/cmd/pr/create/create.go:118
Method
Begin
Begin copies an event's initial facts and returns a handle for adding facts until Finish. Events begun after Finish are not recorded.
internal/telemetry/telemetry.go:291
Method
Begin
(event ghtelemetry.Event)
internal/config/refreshable_telemetry_test.go:33
Function
BenchmarkGenManToFile
(b *testing.B)
internal/docs/man_test.go:305
Function
BenchmarkGenMarkdownToFile
(b *testing.B)
internal/docs/markdown_test.go:119
Method
Bluef
(t string, args ...any)
pkg/iostreams/color.go:188
Method
Body
()
pkg/cmd/pr/shared/templates.go:37
Method
Body
()
pkg/cmd/pr/shared/templates.go:53
Method
Body
()
pkg/cmd/pr/shared/templates.go:304
Method
Browse
(string)
pkg/cmd/release/view/view.go:23
Method
Browse
(url string)
pkg/cmd/codespace/create_test.go:724
Method
Browse
(url string)
pkg/cmd/extension/browse/model_test.go:903
Method
Browse
(url string)
internal/browser/stub.go:7
Method
Browse
(_ string)
cmd/gen-docs/main.go:95
Method
Browser
Browser calls BrowserFunc.
internal/gh/mock/config.go:409
Method
BrowserCalls
BrowserCalls gets all the calls that were made to Browser. Check the length with: len(mockedConfig.BrowserCalls())
internal/gh/mock/config.go:428
Method
CacheDir
CacheDir calls CacheDirFunc.
internal/gh/mock/config.go:441
Method
CacheDirCalls
CacheDirCalls gets all the calls that were made to CacheDir. Check the length with: len(mockedConfig.CacheDirCalls())
internal/gh/mock/config.go:457
Function
CanPushToRepo
(httpClient *http.Client, repo ghrepo.Interface)
api/queries_repo.go:427
Method
Cause
for go1.13 + errors.Is/As
internal/barista/observability/telemetry.twirp.go:842
Method
Cause
for go1.13 + errors.Is/As
internal/barista/observability/telemetry.twirp.go:882
Method
CheckoutBranch
(ctx context.Context, branch string)
git/client.go:678
Method
CheckoutBranch
(branch string)
pkg/cmd/extension/git.go:24
Method
CheckoutBranch
(branch string)
pkg/cmd/extension/mocks.go:12
Method
Clipboard
Clipboard calls ClipboardFunc.
internal/gh/mock/config.go:468
Method
ClipboardCalls
ClipboardCalls gets all the calls that were made to Clipboard. Check the length with: len(mockedConfig.ClipboardCalls())
internal/gh/mock/config.go:484
Method
Clone
Clone creates a mostly-shallow copy of Editable suitable for use in parallel go routines. Fields that would be mutated will be copied.
pkg/cmd/pr/shared/editable.go:292
Method
Clone
(cloneURL string, cloneArgs []string)
pkg/cmd/extension/git.go:28
Method
Clone
(cloneURL string, cloneArgs []string)
pkg/cmd/extension/mocks.go:17
Method
Close
()
script/ghmock/tls.go:160
Method
Close
()
script/api-host-gateway/gateway/main.go:311
Method
Close
()
pkg/cmdutil/file_input_test.go:26
Method
Close
()
pkg/cmd/event/listen/listen_test.go:210
Method
Close
()
pkg/cmd/event/listen/listen.go:577
Method
Close
()
pkg/cmd/codespace/ssh.go:151
Method
Close
Close closes the rooted filesystem.
internal/safepaths/root.go:116
Method
Close
()
internal/authflow/revoke_test.go:24
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
← previous
next →
4,201–4,300 of 7,572, ranked by callers