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
↓ 1 callers
Method
writeExpiry
(sb *strings.Builder, cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:182
↓ 1 callers
Function
writeExportArchive
(path string, write func(string) error)
script/ghmock/archive.go:60
↓ 1 callers
Function
writeExportDir
(st *state, dir string, runs []runRecord, entries []loggedRequest, responses responseSet)
script/ghmock/export.go:100
↓ 1 callers
Function
writeExportReport
writeExportReport writes what each run printed, after its full command and the schema files it checked against.
script/ghmock/export.go:176
↓ 1 callers
Function
writeFakeGH
writeFakeGH writes a wrapper that runs the test binary as gh.
script/ghmock/run_test.go:269
↓ 1 callers
Function
writeFile
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 callers
Function
writeGHConfig
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 callers
Function
writeGraphQLField
(w io.Writer, schema *ast.Schema, def *ast.Definition, f *ast.FieldDefinition)
script/ghmock/schemacmd.go:156
↓ 1 callers
Function
writeGraphQLFields
(w io.Writer, fields ast.FieldList)
script/ghmock/schemacmd.go:143
↓ 1 callers
Function
writeGraphQLType
(w io.Writer, schema *ast.Schema, def *ast.Definition)
script/ghmock/schemacmd.go:104
↓ 1 callers
Function
writeJSON
(w http.ResponseWriter, status int, payload any)
script/ghmock/server.go:336
↓ 1 callers
Function
writeManifest
(dir, name string, data []byte)
pkg/cmd/extension/manager.go:395
↓ 1 callers
Function
writeProperties
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 callers
Function
writeSkill
(t *testing.T, baseDir, relDir, content string)
pkg/cmd/skills/list/list_test.go:509
↓ 1 callers
Function
writeTSV
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 callers
Function
writeTable
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 callers
Function
writeTarGzip
(w io.Writer, root string)
script/ghmock/archive.go:88
↓ 1 callers
Function
writeTestFile
writeTestFile creates a file in the working directory, with any missing parent directories.
pkg/cmd/issue/artifact/download/download_test.go:1529
↓ 1 callers
Function
writeTo
writeTo persists the lock file through an open file handle.
internal/skills/lockfile/lockfile.go:78
↓ 1 callers
Function
writeZip
(w io.Writer, root string)
script/ghmock/archive.go:16
Method
APIHostForHost
APIHostForHost never resolves for the same reason as HostForAPIHost.
internal/authflow/flow.go:150
Method
APIHostForHost
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
Method
AccessibleColors
AccessibleColors calls AccessibleColorsFunc.
internal/gh/mock/config.go:291
Method
AccessibleColorsCalls
AccessibleColorsCalls gets all the calls that were made to AccessibleColors. Check the length with: len(mockedConfig.AccessibleColorsCalls())
internal/gh/mock/config.go:310
Method
AccessiblePrompter
AccessiblePrompter calls AccessiblePrompterFunc.
internal/gh/mock/config.go:323
Method
AccessiblePrompterCalls
AccessiblePrompterCalls gets all the calls that were made to AccessiblePrompter. Check the length with: len(mockedConfig.AccessiblePrompterCalls())
internal/gh/mock/config.go:342
Method
ActionsFeatures
()
internal/featuredetection/feature_detection.go:526
Method
ActionsFeatures
()
internal/featuredetection/detector_mock.go:35
Method
ActionsFeatures
()
internal/featuredetection/detector_mock.go:71
Method
ActiveToken
(host string)
api/http_client_test.go:644
Method
ActiveTokenType
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
Method
ActiveTokenWithRefresh
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:14
Method
ActiveTokenWithRefresh
(hostname string)
pkg/cmd/auth/refresh/refresh_test.go:1064
Method
ActiveTokenWithRefresh
(hostname string)
pkg/cmd/agent-task/capi/client_test.go:31
Method
ActiveTokenWithRefresh
(string)
pkg/cmd/agent-task/capi/job_test.go:22
Method
ActiveTokenWithRefresh
(host string)
internal/attachments/client_test.go:55
Method
ActiveTokenWithRefresh
(hostname string)
internal/authflow/flow.go:139
Method
ActiveTokenWithRefresh
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
Method
ActiveTokenWithRefresh
(host string)
api/http_client_test.go:628
Method
ActiveUser
(host string)
pkg/cmd/auth/gitcredential/helper_test.go:27
Method
Add
(alias, expansion string)
internal/config/config.go:758
Method
AddComment
AddComment calls AddCommentFunc.
pkg/cmd/discussion/client/client_mock.go:252
Method
AddComment
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
Method
AddCommentCalls
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
Function
AdvancedIssueSearchSupportedAsOnlyBackend
()
internal/featuredetection/detector_mock.go:98
Function
AdvancedIssueSearchSupportedAsOptIn
()
internal/featuredetection/detector_mock.go:92
Function
AdvancedIssueSearchUnsupported
()
internal/featuredetection/detector_mock.go:86
Method
Aliases
()
internal/config/config.go:119
Method
Aliases
Aliases calls AliasesFunc.
internal/gh/mock/config.go:355
Method
AliasesCalls
AliasesCalls gets all the calls that were made to Aliases. Check the length with: len(mockedConfig.AliasesCalls())
internal/gh/mock/config.go:371
Method
All
()
internal/config/config.go:766
Method
Ask
(qs []*survey.Question, response any)
pkg/cmd/codespace/create_test.go:716
Method
Association
()
api/queries_pr_review.go:59
Method
Association
()
api/queries_comments.go:135
Method
AuthToken
AuthToken calls AuthTokenFunc.
internal/prompter/prompter_mock.go:173
Method
AuthToken
()
internal/prompter/huh_prompter.go:204
Method
AuthToken
()
internal/prompter/prompter.go:245
Method
AuthToken
()
internal/prompter/prompter.go:527
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:126
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
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:305
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:574
← previous
next →
4,101–4,200 of 7,487, ranked by callers