MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

MethodAuthToken
()
internal/prompter/test.go:57
MethodAuthTokenCalls
AuthTokenCalls gets all the calls that were made to AuthToken. Check the length with: len(mockedPrompter.AuthTokenCalls())
internal/prompter/prompter_mock.go:189
MethodAuthentication
()
pkg/cmd/auth/refresh/refresh_test.go:1056
MethodAuthentication
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
MethodAuthentication
Authentication calls AuthenticationFunc.
internal/gh/mock/config.go:382
MethodAuthorLogin
()
api/queries_pr_review.go:55
MethodAuthorLogin
()
api/queries_comments.go:131
MethodBaseRef
()
pkg/cmd/pr/create/create.go:114
MethodBaseRepo
(io *iostreams.IOStreams)
context/context.go:61
MethodBaseRepo
()
pkg/cmd/pr/create/create.go:118
MethodBegin
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
MethodBegin
(event ghtelemetry.Event)
internal/config/refreshable_telemetry_test.go:33
FunctionBenchmarkGenManToFile
(b *testing.B)
internal/docs/man_test.go:305
FunctionBenchmarkGenMarkdownToFile
(b *testing.B)
internal/docs/markdown_test.go:119
MethodBluef
(t string, args ...any)
pkg/iostreams/color.go:188
MethodBody
()
pkg/cmd/pr/shared/templates.go:37
MethodBody
()
pkg/cmd/pr/shared/templates.go:53
MethodBody
()
pkg/cmd/pr/shared/templates.go:304
MethodBrowse
(string)
pkg/cmd/release/view/view.go:23
MethodBrowse
(url string)
pkg/cmd/codespace/create_test.go:724
MethodBrowse
(url string)
pkg/cmd/extension/browse/model_test.go:903
MethodBrowse
(url string)
internal/browser/stub.go:7
MethodBrowse
(_ string)
cmd/gen-docs/main.go:95
MethodBrowser
Browser calls BrowserFunc.
internal/gh/mock/config.go:409
MethodBrowserCalls
BrowserCalls gets all the calls that were made to Browser. Check the length with: len(mockedConfig.BrowserCalls())
internal/gh/mock/config.go:428
MethodCacheDir
CacheDir calls CacheDirFunc.
internal/gh/mock/config.go:441
MethodCacheDirCalls
CacheDirCalls gets all the calls that were made to CacheDir. Check the length with: len(mockedConfig.CacheDirCalls())
internal/gh/mock/config.go:457
FunctionCanPushToRepo
(httpClient *http.Client, repo ghrepo.Interface)
api/queries_repo.go:427
MethodCause
for go1.13 + errors.Is/As
internal/barista/observability/telemetry.twirp.go:842
MethodCause
for go1.13 + errors.Is/As
internal/barista/observability/telemetry.twirp.go:882
MethodCheckoutBranch
(ctx context.Context, branch string)
git/client.go:678
MethodCheckoutBranch
(branch string)
pkg/cmd/extension/git.go:24
MethodCheckoutBranch
(branch string)
pkg/cmd/extension/mocks.go:12
MethodClipboard
Clipboard calls ClipboardFunc.
internal/gh/mock/config.go:468
MethodClipboardCalls
ClipboardCalls gets all the calls that were made to Clipboard. Check the length with: len(mockedConfig.ClipboardCalls())
internal/gh/mock/config.go:484
MethodClone
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
MethodClone
(cloneURL string, cloneArgs []string)
pkg/cmd/extension/git.go:28
MethodClone
(cloneURL string, cloneArgs []string)
pkg/cmd/extension/mocks.go:17
MethodClose
()
script/ghmock/tls.go:160
MethodClose
()
script/api-host-gateway/gateway/main.go:311
MethodClose
()
pkg/cmdutil/file_input_test.go:26
MethodClose
()
pkg/cmd/event/listen/listen_test.go:210
MethodClose
()
pkg/cmd/event/listen/listen.go:577
MethodClose
()
pkg/cmd/codespace/ssh.go:151
MethodClose
Close closes the rooted filesystem.
internal/safepaths/root.go:116
MethodClose
()
internal/authflow/revoke_test.go:24
MethodClose
Closes the gRPC connection
internal/codespaces/rpc/invoker.go:151
MethodClose
Close implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:16
MethodClose
Close closes the port forwarder's tunnel client connection.
internal/codespaces/portforwarder/port_forwarder.go:352
MethodClose
Close closes the underlying ReadWriteCloser.
internal/codespaces/portforwarder/port_forwarder.go:452
MethodCloseWrite
()
pkg/cmd/codespace/ssh.go:160
MethodCode
(query Query)
pkg/search/searcher.go:65
MethodCode
Code calls CodeFunc.
pkg/search/searcher_mock.go:93
MethodCode
()
internal/barista/observability/telemetry.twirp.go:884
MethodCodeCalls
CodeCalls gets all the calls that were made to Code. Check the length with: len(mockedSearcher.CodeCalls())
pkg/search/searcher_mock.go:112
FunctionColorForIssueState
(issue api.Issue)
pkg/cmd/pr/shared/display.go:44
FunctionColorFuncForSessionState
ColorFuncForSessionState returns a function that colors the session state
pkg/cmd/agent-task/shared/display.go:9
MethodColorLabels
ColorLabels calls ColorLabelsFunc.
internal/gh/mock/config.go:495
MethodColorLabelsCalls
ColorLabelsCalls gets all the calls that were made to ColorLabels. Check the length with: len(mockedConfig.ColorLabelsCalls())
internal/gh/mock/config.go:514
MethodCommandOutput
(args []string)
pkg/cmd/extension/git.go:32
MethodCommandOutput
(commandArgs []string)
pkg/cmd/extension/mocks.go:22
MethodCommits
(ctx context.Context, baseRef, headRef string)
git/client.go:360
MethodCommits
(query Query)
pkg/search/searcher.go:105
MethodCommits
Commits calls CommitsFunc.
pkg/search/searcher_mock.go:125
MethodCommitsCalls
CommitsCalls gets all the calls that were made to Commits. Check the length with: len(mockedSearcher.CommitsCalls())
pkg/search/searcher_mock.go:144
FunctionConfig
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
MethodConfig
(name string)
pkg/cmd/extension/git.go:40
MethodConfig
(name string)
pkg/cmd/extension/mocks.go:27
MethodConfigureOurs
(hostname string)
pkg/cmd/auth/setupgit/setupgit_test.go:23
MethodConfigureOurs
(string)
pkg/cmd/auth/shared/git_credential_test.go:24
MethodConfigureOurs
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
MethodConfiguredHelper
(string)
pkg/cmd/auth/shared/git_credential_test.go:29
MethodConfiguredHelper
ConfiguredHelper returns the configured git credential helper for a given hostname.
pkg/cmd/auth/shared/gitcredentials/fake_helper_config.go:44
MethodConfirm
(string, bool)
pkg/cmd/release/delete-asset/delete_asset.go:18
MethodConfirm
(string, bool)
pkg/cmd/release/delete/delete.go:19
MethodConfirm
(string, bool)
pkg/cmd/release/create/create.go:28
MethodConfirm
(string, bool)
pkg/cmd/auth/shared/prompt.go:5
MethodConfirm
(string, bool)
pkg/cmd/issue/lock/lock.go:31
MethodConfirm
(string, bool)
pkg/cmd/issue/artifact/delete/delete.go:33
MethodConfirm
(string, bool)
pkg/cmd/repo/delete/delete.go:20
MethodConfirm
(string, bool)
pkg/cmd/repo/fork/fork.go:29
MethodConfirm
(string, bool)
pkg/cmd/repo/create/create.go:36
MethodConfirm
(string, bool)
pkg/cmd/repo/rename/rename.go:22
MethodConfirm
(message string)
pkg/cmd/codespace/delete.go:222
MethodConfirm
Confirm calls ConfirmFunc.
pkg/cmd/codespace/mock_prompter.go:41
MethodConfirm
Confirm calls ConfirmFunc.
internal/prompter/prompter_mock.go:200
MethodConfirm
(prompt string, defaultValue bool)
internal/prompter/huh_prompter.go:176
MethodConfirm
(prompt string, defaultValue bool)
internal/prompter/prompter.go:222
MethodConfirm
(prompt string, defaultValue bool)
internal/prompter/prompter.go:523
MethodConfirmCalls
ConfirmCalls gets all the calls that were made to Confirm. Check the length with: len(mockedprompter.ConfirmCalls())
pkg/cmd/codespace/mock_prompter.go:60
MethodConfirmDeletion
(string)
pkg/cmd/label/delete.go:16
MethodConfirmDeletion
(string)
pkg/cmd/issue/delete/delete.go:29
MethodConfirmDeletion
ConfirmDeletion calls ConfirmDeletionFunc.
internal/prompter/prompter_mock.go:236
MethodConfirmDeletion
(requiredValue string)
internal/prompter/huh_prompter.go:225
MethodConfirmDeletion
(requiredValue string)
internal/prompter/prompter.go:269
MethodConfirmDeletion
(requiredValue string)
internal/prompter/prompter.go:535
MethodConfirmDeletion
(prompt string)
internal/prompter/test.go:67
FunctionConfirmIssueSubmission
(p Prompt, allowPreview bool, allowMetadata bool)
pkg/cmd/pr/shared/survey.go:47
MethodContent
()
api/queries_pr_review.go:63
MethodContent
()
api/queries_comments.go:139
← previousnext →4,201–4,300 of 7,572, ranked by callers