MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

MethodLoginRefreshable
(host, username string, credential gh.Credential, gitProtocol string, encrypt bool)
pkg/cmd/auth/shared/login_flow_test.go:38
MethodLoginRefreshable
(string, string, gh.Credential, string, bool)
pkg/cmd/auth/shared/login_flow_test.go:57
MethodLoginRefreshable
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
MethodLogins
()
api/queries_issue.go:152
MethodLogout
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
MethodMagentaf
(t string, args ...any)
pkg/iostreams/color.go:159
FunctionMakeTestExporter
(fields []string, wh func(io *iostreams.IOStreams, data any) error)
pkg/cmd/run/shared/test.go:282
FunctionMap
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
MethodMarkdownEditor
MarkdownEditor calls MarkdownEditorFunc.
internal/prompter/prompter_mock.go:331
MethodMarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/huh_prompter.go:273
MethodMarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/prompter.go:304
MethodMarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/prompter.go:562
MethodMarkdownEditor
(prompt, defaultValue string, blankAllowed bool)
internal/prompter/test.go:87
MethodMarkdownEditorCalls
MarkdownEditorCalls gets all the calls that were made to MarkdownEditor. Check the length with: len(mockedPrompter.MarkdownEditorCalls())
internal/prompter/prompter_mock.go:354
MethodMarshalJSON
()
pkg/search/result.go:381
MethodMarshalJSON
MarshalJSON emits the raw content as a JSON string so a value round-trips faithfully through encode/decode.
pkg/iostreams/untrusted.go:74
MethodMarshalJSON
()
api/queries_issue.go:294
MethodMarshalJSON
()
api/reaction_groups.go:10
FunctionMatchAny
(*http.Request)
pkg/httpmock/stub.go:27
MethodMerge
(m2 *RepoMetadataResult)
api/queries_repo.go:951
MethodMergeFastForward
(ref string)
pkg/cmd/repo/sync/git.go:94
MethodMergeFastForward
(a string)
pkg/cmd/repo/sync/mocks.go:52
MethodMeta
(key string)
internal/barista/observability/telemetry.twirp.go:886
MethodMigrate
Migrate applies a migration to the configuration.
internal/gh/gh.go:81
MethodMigrate
Migrate calls MigrateFunc.
internal/gh/mock/config.go:659
MethodMigrateCalls
MigrateCalls gets all the calls that were made to Migrate. Check the length with: len(mockedConfig.MigrateCalls())
internal/gh/mock/config.go:678
MethodMultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/repo/edit/edit.go:28
MethodMultiSelect
MultiSelect calls MultiSelectFunc.
internal/prompter/prompter_mock.go:371
MethodMultiSelect
(prompt string, defaults []string, options []string)
internal/prompter/huh_prompter.go:100
MethodMultiSelect
(prompt string, defaults []string, options []string)
internal/prompter/prompter.go:148
MethodMultiSelect
(prompt string, defaultValues, options []string)
internal/prompter/prompter.go:357
MethodMultiSelectCalls
MultiSelectCalls gets all the calls that were made to MultiSelect. Check the length with: len(mockedPrompter.MultiSelectCalls())
internal/prompter/prompter_mock.go:394
MethodMultiSelectWithSearch
MultiSelectWithSearch calls MultiSelectWithSearchFunc.
internal/prompter/prompter_mock.go:411
MethodMultiSelectWithSearch
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/huh_prompter.go:115
MethodMultiSelectWithSearch
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/prompter.go:341
MethodMultiSelectWithSearch
(prompt string, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSe
internal/prompter/prompter.go:361
MethodMultiSelectWithSearch
(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSele
internal/prompter/test.go:100
MethodMultiSelectWithSearchCalls
MultiSelectWithSearchCalls gets all the calls that were made to MultiSelectWithSearch. Check the length with: len(mockedPrompter.MultiSelectWithSear
internal/prompter/prompter_mock.go:438
MethodMutate
(queryName string, query any, variables map[string]any)
pkg/cmd/project/shared/queries/queries.go:72
MethodMutate
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
MethodName
()
pkg/cmd/pr/shared/templates.go:29
MethodName
()
pkg/cmd/pr/shared/templates.go:45
MethodName
()
pkg/cmd/pr/shared/templates.go:297
MethodName
()
pkg/cmd/extension/extension.go:43
MethodName
()
internal/safepaths/link_windows_test.go:165
MethodName
()
api/queries_repo.go:1200
MethodName
()
api/queries_repo.go:1230
MethodNameCalls
NameCalls gets all the calls that were made to Name. Check the length with: len(mockedExtension.NameCalls())
pkg/extensions/extension_mock.go:284
MethodNameForSubmit
()
pkg/cmd/pr/shared/templates.go:33
MethodNameForSubmit
()
pkg/cmd/pr/shared/templates.go:49
MethodNameForSubmit
()
pkg/cmd/pr/shared/templates.go:301
FunctionNewCmdAccessibility
(f *cmdutil.Factory)
pkg/cmd/accessibility/accessibility.go:25
FunctionNewCmdActions
(f *cmdutil.Factory)
pkg/cmd/actions/actions.go:10
FunctionNewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/gpg-key/add/add.go:26
FunctionNewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/repo/deploy-key/add/add.go:26
FunctionNewCmdAdd
(f *cmdutil.Factory, runF func(*AddOptions) error)
pkg/cmd/ssh-key/add/add.go:26
FunctionNewCmdAlias
(f *cmdutil.Factory)
pkg/cmd/alias/alias.go:13
FunctionNewCmdArtifact
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
FunctionNewCmdAttestation
(f *cmdutil.Factory)
pkg/cmd/attestation/attestation.go:14
FunctionNewCmdAuth
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/auth/auth.go:17
FunctionNewCmdAutolink
(f *cmdutil.Factory)
pkg/cmd/repo/autolink/autolink.go:13
FunctionNewCmdCache
(f *cmdutil.Factory)
pkg/cmd/cache/cache.go:11
FunctionNewCmdCodespace
(f *cmdutil.Factory)
pkg/cmd/codespace/root.go:18
FunctionNewCmdConfig
(f *cmdutil.Factory)
pkg/cmd/config/config.go:16
FunctionNewCmdConfigClearCache
(f *cmdutil.Factory, runF func(*ClearCacheOptions) error)
pkg/cmd/config/clear-cache/clear_cache.go:19
FunctionNewCmdCredential
(f *cmdutil.Factory, runF func(*CredentialOptions) error)
pkg/cmd/auth/gitcredential/helper.go:30
FunctionNewCmdCredits
(f *cmdutil.Factory, runF func(*CreditsOptions) error)
pkg/cmd/repo/credits/credits.go:34
FunctionNewCmdDelete
(f *cmdutil.Factory, runF func(*DeleteOptions) error)
pkg/cmd/repo/deploy-key/delete/delete.go:21
FunctionNewCmdDeployKey
(f *cmdutil.Factory)
pkg/cmd/repo/deploy-key/deploy-key.go:11
FunctionNewCmdDiscussion
NewCmdDiscussion returns the top-level "discussion" command.
pkg/cmd/discussion/discussion.go:15
FunctionNewCmdEvent
(f *cmdutil.Factory)
pkg/cmd/event/event.go:12
FunctionNewCmdGPGKey
(f *cmdutil.Factory)
pkg/cmd/gpg-key/gpg_key.go:11
FunctionNewCmdGist
(f *cmdutil.Factory)
pkg/cmd/gist/gist.go:16
FunctionNewCmdGitIgnore
(f *cmdutil.Factory)
pkg/cmd/repo/gitignore/gitignore.go:10
FunctionNewCmdIssue
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/issue/issue.go:25
FunctionNewCmdLabel
(f *cmdutil.Factory)
pkg/cmd/label/label.go:8
FunctionNewCmdLicense
(f *cmdutil.Factory)
pkg/cmd/repo/license/license.go:10
FunctionNewCmdLicenses
(f *cmdutil.Factory)
pkg/cmd/licenses/licenses.go:11
FunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/gpg-key/list/list.go:22
FunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/repo/deploy-key/list/list.go:31
FunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/ssh-key/list/list.go:26
FunctionNewCmdOrg
(f *cmdutil.Factory)
pkg/cmd/org/org.go:10
FunctionNewCmdPR
(f *cmdutil.Factory, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/pr/pr.go:27
FunctionNewCmdPin
(f *cmdutil.Factory, runF func(*PinOptions) error)
pkg/cmd/issue/pin/pin.go:26
FunctionNewCmdPreview
(f *cmdutil.Factory)
pkg/cmd/preview/preview.go:10
FunctionNewCmdProject
(f *cmdutil.Factory)
pkg/cmd/project/project.go:28
FunctionNewCmdPrompter
(f *cmdutil.Factory, runF func(*prompterOptions) error)
pkg/cmd/preview/prompter/prompter.go:22
FunctionNewCmdRelease
(f *cmdutil.Factory)
pkg/cmd/release/release.go:18
FunctionNewCmdRepo
(f *cmdutil.Factory)
pkg/cmd/repo/repo.go:29
FunctionNewCmdRepoCredits
(f *cmdutil.Factory, runF func(*CreditsOptions) error)
pkg/cmd/repo/credits/credits.go:72
FunctionNewCmdRuleset
(f *cmdutil.Factory)
pkg/cmd/ruleset/ruleset.go:12
FunctionNewCmdRun
(f *cmdutil.Factory)
pkg/cmd/run/run.go:15
FunctionNewCmdSSHKey
(f *cmdutil.Factory)
pkg/cmd/ssh-key/ssh_key.go:11
FunctionNewCmdSearch
(f *cmdutil.Factory)
pkg/cmd/search/search.go:15
FunctionNewCmdSecret
(f *cmdutil.Factory)
pkg/cmd/secret/secret.go:12
FunctionNewCmdSendTelemetry
(f *cmdutil.Factory)
pkg/cmd/send-telemetry/send_telemetry.go:29
FunctionNewCmdSubscription
(f *cmdutil.Factory)
pkg/cmd/event/subscription/subscription.go:14
FunctionNewCmdUnpin
(f *cmdutil.Factory, runF func(*UnpinOptions) error)
pkg/cmd/issue/unpin/unpin.go:27
FunctionNewCmdUpload
(f *cmdutil.Factory, runF func(*UploadOptions) error)
pkg/cmd/release/upload/upload.go:33
FunctionNewCmdVariable
(f *cmdutil.Factory)
pkg/cmd/variable/variable.go:13
← previousnext →4,701–4,800 of 7,487, ranked by callers