MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 1 callersMethodwriteExpiry
(sb *strings.Builder, cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:182
↓ 1 callersFunctionwriteExportArchive
(path string, write func(string) error)
script/ghmock/archive.go:60
↓ 1 callersFunctionwriteExportDir
(st *state, dir string, runs []runRecord, entries []loggedRequest, responses responseSet)
script/ghmock/export.go:100
↓ 1 callersFunctionwriteExportReport
writeExportReport writes what each run printed, after its full command and the schema files it checked against.
script/ghmock/export.go:176
↓ 1 callersFunctionwriteFakeGH
writeFakeGH writes a wrapper that runs the test binary as gh.
script/ghmock/run_test.go:269
↓ 1 callersFunctionwriteFile
writeFile creates a file of the given size relative to the test's working directory. Truncate makes a sparse file, so a size over the image limit cost
internal/attachments/userasset_test.go:17
↓ 1 callersFunctionwriteGHConfig
writeGHConfig writes gh's config the way gh auth login --insecure-storage leaves it, logged in to host as fakeUser with fakeToken. That's where a user
script/ghmock/run.go:484
↓ 1 callersFunctionwriteGraphQLField
(w io.Writer, schema *ast.Schema, def *ast.Definition, f *ast.FieldDefinition)
script/ghmock/schemacmd.go:156
↓ 1 callersFunctionwriteGraphQLFields
(w io.Writer, fields ast.FieldList)
script/ghmock/schemacmd.go:143
↓ 1 callersFunctionwriteGraphQLType
(w io.Writer, schema *ast.Schema, def *ast.Definition)
script/ghmock/schemacmd.go:104
↓ 1 callersFunctionwriteJSON
(w http.ResponseWriter, status int, payload any)
script/ghmock/server.go:336
↓ 1 callersFunctionwriteManifest
(dir, name string, data []byte)
pkg/cmd/extension/manager.go:395
↓ 1 callersFunctionwriteProperties
writeProperties lists an object's properties, or those of each item in a list of objects, with the ones a response must include first.
script/ghmock/schemacmd.go:517
↓ 1 callersFunctionwriteSkill
(t *testing.T, baseDir, relDir, content string)
pkg/cmd/skills/list/list_test.go:509
↓ 1 callersFunctionwriteTSV
writeTSV writes a tab-separated listing for non-TTY output: type, name, octal mode, and raw byte size, with no header.
pkg/cmd/repo/read-dir/read_dir.go:154
↓ 1 callersFunctionwriteTable
writeTable writes the TTY listing as a TYPE/NAME/SIZE table. Names are colored by entry type and directories and submodules show "-" since git reports
pkg/cmd/repo/read-dir/read_dir.go:166
↓ 1 callersFunctionwriteTarGzip
(w io.Writer, root string)
script/ghmock/archive.go:88
↓ 1 callersFunctionwriteTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/download/download_test.go:1529
↓ 1 callersFunctionwriteTo
writeTo persists the lock file through an open file handle.
internal/skills/lockfile/lockfile.go:78
↓ 1 callersFunctionwriteZip
(w io.Writer, root string)
script/ghmock/archive.go:16
MethodAPIHostForHost
APIHostForHost never resolves for the same reason as HostForAPIHost.
internal/authflow/flow.go:150
MethodAPIHostForHost
APIHostForHost returns the api_host configured for host, reporting false when the host has no api_host set. It is the inverse of HostForAPIHost.
internal/config/config.go:436
MethodAccessibleColors
AccessibleColors calls AccessibleColorsFunc.
internal/gh/mock/config.go:291
MethodAccessibleColorsCalls
AccessibleColorsCalls gets all the calls that were made to AccessibleColors. Check the length with: len(mockedConfig.AccessibleColorsCalls())
internal/gh/mock/config.go:310
MethodAccessiblePrompter
AccessiblePrompter calls AccessiblePrompterFunc.
internal/gh/mock/config.go:323
MethodAccessiblePrompterCalls
AccessiblePrompterCalls gets all the calls that were made to AccessiblePrompter. Check the length with: len(mockedConfig.AccessiblePrompterCalls())
internal/gh/mock/config.go:342
MethodActionsFeatures
()
internal/featuredetection/feature_detection.go:526
MethodActionsFeatures
()
internal/featuredetection/detector_mock.go:35
MethodActionsFeatures
()
internal/featuredetection/detector_mock.go:71
MethodActiveToken
(host string)
api/http_client_test.go:644
MethodActiveTokenType
ActiveTokenType reports what kind of credential the active token is, so a caller that only needs to know that can avoid handling the token. It is curr
internal/config/config.go:302
MethodActiveTokenWithRefresh
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:14
MethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/auth/refresh/refresh_test.go:1064
MethodActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client_test.go:31
MethodActiveTokenWithRefresh
(string)
pkg/cmd/agent-task/capi/job_test.go:22
MethodActiveTokenWithRefresh
(host string)
internal/attachments/client_test.go:55
MethodActiveTokenWithRefresh
(hostname string)
internal/authflow/flow.go:139
MethodActiveTokenWithRefresh
ActiveTokenWithRefresh retrieves the active credential for the given hostname and, when it is refreshable and its access token is expiring, renews and
internal/config/config.go:353
MethodActiveTokenWithRefresh
(host string)
api/http_client_test.go:628
MethodActiveUser
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:27
MethodAdd
(alias, expansion string)
internal/config/config.go:758
MethodAddComment
AddComment calls AddCommentFunc.
pkg/cmd/discussion/client/client_mock.go:252
MethodAddComment
AddComment adds a comment to a discussion. If replyToID is non-empty, the comment is created as a reply to that comment.
pkg/cmd/discussion/client/client.go:1101
MethodAddCommentCalls
AddCommentCalls gets all the calls that were made to AddComment. Check the length with: len(mockedDiscussionClient.AddCommentCalls())
pkg/cmd/discussion/client/client_mock.go:277
FunctionAdvancedIssueSearchSupportedAsOnlyBackend
()
internal/featuredetection/detector_mock.go:98
FunctionAdvancedIssueSearchSupportedAsOptIn
()
internal/featuredetection/detector_mock.go:92
FunctionAdvancedIssueSearchUnsupported
()
internal/featuredetection/detector_mock.go:86
MethodAliases
()
internal/config/config.go:119
MethodAliases
Aliases calls AliasesFunc.
internal/gh/mock/config.go:355
MethodAliasesCalls
AliasesCalls gets all the calls that were made to Aliases. Check the length with: len(mockedConfig.AliasesCalls())
internal/gh/mock/config.go:371
MethodAll
()
internal/config/config.go:766
MethodAsk
(qs []*survey.Question, response any)
pkg/cmd/codespace/create_test.go:716
MethodAssociation
()
api/queries_pr_review.go:59
MethodAssociation
()
api/queries_comments.go:135
MethodAuthToken
AuthToken calls AuthTokenFunc.
internal/prompter/prompter_mock.go:173
MethodAuthToken
()
internal/prompter/huh_prompter.go:204
MethodAuthToken
()
internal/prompter/prompter.go:245
MethodAuthToken
()
internal/prompter/prompter.go:527
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:126
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
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:305
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:574
← previousnext →4,101–4,200 of 7,487, ranked by callers