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
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:145
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:601
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:81
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:122
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:297
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
Method
NameForSubmit
()
pkg/cmd/pr/shared/templates.go:301
Function
NewCmdAccessibility
(f *cmdutil.Factory)
pkg/cmd/accessibility/accessibility.go:25
Function
NewCmdActions
(f *cmdutil.Factory)
pkg/cmd/actions/actions.go:10
Function
NewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/gpg-key/add/add.go:26
Function
NewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/repo/deploy-key/add/add.go:26
Function
NewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/ssh-key/add/add.go:26
Function
NewCmdAlias
(f *cmdutil.Factory)
pkg/cmd/alias/alias.go:13
Function
NewCmdArtifact
NewCmdArtifact returns the gh issue artifact command group, which is in preview. It inherits -R from gh issue. telemetry records --attach use, as in t
pkg/cmd/issue/artifact/artifact.go:21
Function
NewCmdAttestation
(f *cmdutil.Factory)
pkg/cmd/attestation/attestation.go:14
Function
NewCmdAuth
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/auth/auth.go:17
Function
NewCmdAutolink
(f *cmdutil.Factory)
pkg/cmd/repo/autolink/autolink.go:13
Function
NewCmdCache
(f *cmdutil.Factory)
pkg/cmd/cache/cache.go:11
Function
NewCmdCodespace
(f *cmdutil.Factory)
pkg/cmd/codespace/root.go:18
Function
NewCmdConfig
(f *cmdutil.Factory)
pkg/cmd/config/config.go:16
Function
NewCmdConfigClearCache
(f *cmdutil.Factory, runF func(*ClearCacheOptions) error)
pkg/cmd/config/clear-cache/clear_cache.go:19
Function
NewCmdCredential
(f *cmdutil.Factory, runF func(*CredentialOptions) error)
pkg/cmd/auth/gitcredential/helper.go:30
Function
NewCmdCredits
(f *cmdutil.Factory, runF func(*CreditsOptions) error)
pkg/cmd/repo/credits/credits.go:34
Function
NewCmdDelete
(f *cmdutil.Factory, runF func(*DeleteOptions) error)
pkg/cmd/repo/deploy-key/delete/delete.go:21
Function
NewCmdDeployKey
(f *cmdutil.Factory)
pkg/cmd/repo/deploy-key/deploy-key.go:11
Function
NewCmdDiscussion
NewCmdDiscussion returns the top-level "discussion" command.
pkg/cmd/discussion/discussion.go:15
Function
NewCmdEvent
(f *cmdutil.Factory)
pkg/cmd/event/event.go:12
Function
NewCmdGPGKey
(f *cmdutil.Factory)
pkg/cmd/gpg-key/gpg_key.go:11
Function
NewCmdGist
(f *cmdutil.Factory)
pkg/cmd/gist/gist.go:16
Function
NewCmdGitIgnore
(f *cmdutil.Factory)
pkg/cmd/repo/gitignore/gitignore.go:10
Function
NewCmdIssue
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/issue/issue.go:25
Function
NewCmdLabel
(f *cmdutil.Factory)
pkg/cmd/label/label.go:8
Function
NewCmdLicense
(f *cmdutil.Factory)
pkg/cmd/repo/license/license.go:10
Function
NewCmdLicenses
(f *cmdutil.Factory)
pkg/cmd/licenses/licenses.go:11
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/gpg-key/list/list.go:22
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/repo/deploy-key/list/list.go:31
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/ssh-key/list/list.go:26
Function
NewCmdOrg
(f *cmdutil.Factory)
pkg/cmd/org/org.go:10
Function
NewCmdPR
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/pr/pr.go:27
Function
NewCmdPin
(f *cmdutil.Factory, runF func(*PinOptions) error)
pkg/cmd/issue/pin/pin.go:26
Function
NewCmdPreview
(f *cmdutil.Factory)
pkg/cmd/preview/preview.go:10
Function
NewCmdProject
(f *cmdutil.Factory)
pkg/cmd/project/project.go:28
Function
NewCmdPrompter
(f *cmdutil.Factory, runF func(*prompterOptions) error)
pkg/cmd/preview/prompter/prompter.go:22
Function
NewCmdRelease
(f *cmdutil.Factory)
pkg/cmd/release/release.go:18
Function
NewCmdRepo
(f *cmdutil.Factory)
pkg/cmd/repo/repo.go:29
Function
NewCmdRepoCredits
(f *cmdutil.Factory, runF func(*CreditsOptions) error)
pkg/cmd/repo/credits/credits.go:72
Function
NewCmdRuleset
(f *cmdutil.Factory)
pkg/cmd/ruleset/ruleset.go:12
Function
NewCmdRun
(f *cmdutil.Factory)
pkg/cmd/run/run.go:15
Function
NewCmdSSHKey
(f *cmdutil.Factory)
pkg/cmd/ssh-key/ssh_key.go:11
Function
NewCmdSearch
(f *cmdutil.Factory)
pkg/cmd/search/search.go:15
Function
NewCmdSecret
(f *cmdutil.Factory)
pkg/cmd/secret/secret.go:12
Function
NewCmdSendTelemetry
(f *cmdutil.Factory)
pkg/cmd/send-telemetry/send_telemetry.go:29
Function
NewCmdSubscription
(f *cmdutil.Factory)
pkg/cmd/event/subscription/subscription.go:14
Function
NewCmdUnpin
(f *cmdutil.Factory, runF func(*UnpinOptions) error)
pkg/cmd/issue/unpin/unpin.go:27
Function
NewCmdUpload
(f *cmdutil.Factory, runF func(*UploadOptions) error)
pkg/cmd/release/upload/upload.go:33
Function
NewCmdVariable
(f *cmdutil.Factory)
pkg/cmd/variable/variable.go:13
← previous
next →
4,701–4,800 of 7,487, ranked by callers