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
Len
https://golang.org/pkg/sort/#Interface
context/remote.go:74
Method
Len
()
pkg/cmd/status/status.go:155
Method
Len
()
pkg/cmd/run/shared/shared.go:247
Method
Less
(i, j int)
context/remote.go:76
Method
Less
(i, j int)
pkg/cmd/run/shared/shared.go:248
Method
Link
()
api/queries_issue.go:475
Method
Link
()
api/queries_pr_review.go:86
Method
Link
()
api/queries_pr.go:316
Method
Link
()
api/queries_comments.go:159
Method
List
List calls ListFunc.
pkg/cmd/discussion/client/client_mock.go:536
Method
List
(repo ghrepo.Interface, filters ListFilters, after string, limit int)
pkg/cmd/discussion/client/client.go:178
Method
List
List calls ListFunc.
pkg/cmd/issue/artifact/client/client_mock.go:316
Method
List
List requests pages until one comes back short or the limit is reached. Every request asks for the same page size, so the page numbers line up.
pkg/cmd/issue/artifact/client/client.go:87
Method
List
(repo ghrepo.Interface)
pkg/cmd/repo/autolink/list/list_test.go:104
Method
List
(runID string)
pkg/cmd/run/download/download_test.go:165
Method
List
(opts ListOptions)
pkg/cmd/pr/shared/lister.go:38
Method
List
(opt ListOptions)
pkg/cmd/pr/shared/lister.go:163
Method
List
()
pkg/cmd/extension/manager.go:142
Method
List
List calls ListFunc.
pkg/extensions/manager_mock.go:326
Method
List
()
pkg/extensions/extension.go:33
Method
List
()
cmd/gen-docs/main.go:102
Method
ListCalls
ListCalls gets all the calls that were made to List. Check the length with: len(mockedDiscussionClient.ListCalls())
pkg/cmd/discussion/client/client_mock.go:561
Method
ListCategories
ListCategories calls ListCategoriesFunc.
pkg/cmd/discussion/client/client_mock.go:580
Method
ListCategories
(repo ghrepo.Interface)
pkg/cmd/discussion/client/client.go:778
Method
ListCategoriesCalls
ListCategoriesCalls gets all the calls that were made to ListCategories. Check the length with: len(mockedDiscussionClient.ListCategoriesCalls())
pkg/cmd/discussion/client/client_mock.go:599
Method
ListCodespaces
ListCodespaces calls ListCodespacesFunc.
pkg/cmd/codespace/mock_api.go:816
Method
ListDevContainers
ListDevContainers calls ListDevContainersFunc.
pkg/cmd/codespace/mock_api.go:852
Method
ListDevContainers
ListDevContainers returns a list of valid devcontainer.json files for the repo. Pass a negative limit to request all pages from the API until all devc
internal/codespaces/api/api.go:1093
Method
ListDevContainersCalls
ListDevContainersCalls gets all the calls that were made to ListDevContainers. Check the length with: len(mockedapiClient.ListDevContainersCalls())
pkg/cmd/codespace/mock_api.go:877
Method
ListLabels
ListLabels calls ListLabelsFunc.
pkg/cmd/discussion/client/client_mock.go:612
Method
ListLabels
ListLabels fetches all labels for a repository, ordered alphabetically by name.
pkg/cmd/discussion/client/client.go:855
Method
ListLabelsCalls
ListLabelsCalls gets all the calls that were made to ListLabels. Check the length with: len(mockedDiscussionClient.ListLabelsCalls())
pkg/cmd/discussion/client/client_mock.go:631
Method
ListLatestSessionsForViewer
ListLatestSessionsForViewer calls ListLatestSessionsForViewerFunc.
pkg/cmd/agent-task/capi/client_mock.go:370
Method
ListLatestSessionsForViewerCalls
ListLatestSessionsForViewerCalls gets all the calls that were made to ListLatestSessionsForViewer. Check the length with: len(mockedCapiClient.ListL
pkg/cmd/agent-task/capi/client_mock.go:391
Method
ListPorts
(ctx context.Context)
pkg/cmd/codespace/jupyter_test.go:21
Method
ListPorts
ListPorts fetches the list of ports that are currently forwarded.
internal/codespaces/portforwarder/port_forwarder.go:254
Method
ListSessionsByResourceID
ListSessionsByResourceID calls ListSessionsByResourceIDFunc.
pkg/cmd/agent-task/capi/client_mock.go:406
Method
ListSessionsByResourceIDCalls
ListSessionsByResourceIDCalls gets all the calls that were made to ListSessionsByResourceID. Check the length with: len(mockedCapiClient.ListSession
pkg/cmd/agent-task/capi/client_mock.go:431
Method
ListSubscriptions
ListSubscriptions calls ListSubscriptionsFunc.
pkg/cmd/event/client/client_mock.go:219
Method
ListSubscriptions
(ctx context.Context, limit int)
pkg/cmd/event/client/client.go:154
Method
ListSubscriptionsCalls
ListSubscriptionsCalls gets all the calls that were made to ListSubscriptions. Check the length with: len(mockedEventClient.ListSubscriptionsCalls()
pkg/cmd/event/client/client_mock.go:240
Method
Login
(host, username, token, gitProtocol string, encrypt bool)
pkg/cmd/auth/shared/login_flow_test.go:31
Method
Login
(string, string, string, string, bool)
pkg/cmd/auth/shared/login_flow_test.go:53
Method
Login
Login will set user, git protocol, and auth token for the given hostname. If the encrypt option is specified it will first try to store the auth token
internal/config/config.go:527
Method
Login
()
api/queries_pr_review.go:189
Method
Login
()
api/queries_pr_review.go:239
Method
Login
()
api/queries_repo.go:1196
Method
Login
()
api/queries_repo.go:1226
Method
LoginRefreshable
(host, username string, credential gh.Credential, gitProtocol string, encrypt bool)
pkg/cmd/auth/shared/login_flow_test.go:38
Method
LoginRefreshable
(string, string, gh.Credential, string, bool)
pkg/cmd/auth/shared/login_flow_test.go:57
Method
LoginRefreshable
LoginRefreshable stores a refreshable credential for the user, sets the git protocol, and activates the user. It mirrors Login: secure storage is pref
internal/config/refreshable.go:146
Method
Logins
()
api/queries_issue.go:152
Method
Logout
Logout will remove user, git protocol, and auth token for the given hostname. It will remove the auth token from the encrypted storage if it exists th
internal/config/config.go:625
Method
LogoutWithCredential
(hostname, username string, beforeLogout func(gh.Credential, error, func(gh.RefreshableCredential) error) erro
pkg/cmd/auth/logout/logout_test.go:1318
Method
LogoutWithCredential
LogoutWithCredential coordinates credential-dependent cleanup with concurrent refreshes. Advisory locking is best effort, matching Logout. The callbac
internal/config/config.go:637
Method
Magentaf
(t string, args ...any)
pkg/iostreams/color.go:159
Function
MakeTestExporter
(fields []string, wh func(io *iostreams.IOStreams, data any) error)
pkg/cmd/run/shared/test.go:282
Function
Map
Map applies a function to the contained value of (if [Some]), or returns [None]. Use this function very sparingly as it can lead to very unidiomatic
pkg/option/option.go:140
Method
MarkdownEditor
MarkdownEditor calls MarkdownEditorFunc.
internal/prompter/prompter_mock.go:331
Method
MarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/huh_prompter.go:273
Method
MarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/prompter.go:304
Method
MarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/prompter.go:562
Method
MarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/test.go:87
Method
MarkdownEditorCalls
MarkdownEditorCalls gets all the calls that were made to MarkdownEditor. Check the length with: len(mockedPrompter.MarkdownEditorCalls())
internal/prompter/prompter_mock.go:354
Method
MarshalJSON
()
pkg/search/result.go:381
Method
MarshalJSON
MarshalJSON emits the raw content as a JSON string so a value round-trips faithfully through encode/decode.
pkg/iostreams/untrusted.go:74
Method
MarshalJSON
()
api/queries_issue.go:294
Method
MarshalJSON
()
api/reaction_groups.go:10
Function
MatchAny
(*http.Request)
pkg/httpmock/stub.go:27
Method
Merge
(m2 *RepoMetadataResult)
api/queries_repo.go:951
Method
MergeFastForward
(ref string)
pkg/cmd/repo/sync/git.go:94
Method
MergeFastForward
(a string)
pkg/cmd/repo/sync/mocks.go:52
Method
Meta
(key string)
internal/barista/observability/telemetry.twirp.go:886
Method
Migrate
Migrate applies a migration to the configuration.
internal/gh/gh.go:82
Method
Migrate
Migrate calls MigrateFunc.
internal/gh/mock/config.go:659
Method
MigrateCalls
MigrateCalls gets all the calls that were made to Migrate. Check the length with: len(mockedConfig.MigrateCalls())
internal/gh/mock/config.go:678
Method
MultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/repo/edit/edit.go:28
Method
MultiSelect
MultiSelect calls MultiSelectFunc.
internal/prompter/prompter_mock.go:371
Method
MultiSelect
(prompt string, defaults []string, options []string)
internal/prompter/huh_prompter.go:100
Method
MultiSelect
(prompt string, defaults []string, options []string)
internal/prompter/prompter.go:148
Method
MultiSelect
(prompt string, defaultValues, options []string)
internal/prompter/prompter.go:357
Method
MultiSelectCalls
MultiSelectCalls gets all the calls that were made to MultiSelect. Check the length with: len(mockedPrompter.MultiSelectCalls())
internal/prompter/prompter_mock.go:394
Method
MultiSelectWithSearch
MultiSelectWithSearch calls MultiSelectWithSearchFunc.
internal/prompter/prompter_mock.go:411
Method
MultiSelectWithSearch
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/huh_prompter.go:115
Method
MultiSelectWithSearch
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/prompter.go:341
Method
MultiSelectWithSearch
(prompt string, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSe
internal/prompter/prompter.go:361
Method
MultiSelectWithSearch
(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSele
internal/prompter/test.go:100
Method
MultiSelectWithSearchCalls
MultiSelectWithSearchCalls gets all the calls that were made to MultiSelectWithSearch. Check the length with: len(mockedPrompter.MultiSelectWithSear
internal/prompter/prompter_mock.go:438
Method
Mutate
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:72
Method
Mutate
Mutate performs a GraphQL mutation based on a struct and parses the response with the same struct as the receiver. If there are errors in the response
api/client.go:123
Method
Name
()
pkg/cmd/pr/shared/templates.go:29
Method
Name
()
pkg/cmd/pr/shared/templates.go:45
Method
Name
()
pkg/cmd/pr/shared/templates.go:296
Method
Name
()
pkg/cmd/extension/extension.go:43
Method
Name
()
internal/safepaths/link_windows_test.go:165
Method
Name
()
api/queries_repo.go:1200
Method
Name
()
api/queries_repo.go:1230
Method
NameCalls
NameCalls gets all the calls that were made to Name. Check the length with: len(mockedExtension.NameCalls())
pkg/extensions/extension_mock.go:284
Method
NameForSubmit
()
pkg/cmd/pr/shared/templates.go:33
Method
NameForSubmit
()
pkg/cmd/pr/shared/templates.go:49
← previous
next →
4,701–4,800 of 7,572, ranked by callers