MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions6,141 in github.com/cli/cli

↓ 4 callersFunctionOnGetByDigestFailure
(params FetchParams)
pkg/cmd/attestation/api/mock_client.go:55
↓ 4 callersMethodOwner
()
pkg/cmd/extension/extension.go:182
↓ 4 callersMethodPassword
(string)
pkg/cmd/auth/shared/prompt.go:9
↓ 4 callersMethodProjectsTitlesToIDs
ProjectsTitlesToIDs returns two arrays: - the first contains IDs of projects V1 - the second contains IDs of projects V2 - if neither project V1 or pr
api/queries_repo.go:831
↓ 4 callersFunctionProjectsV2IgnorableError
When querying ProjectsV2 fields we generally don't want to show the user scope errors, field does not exist errors, or authorization errors. ProjectsV
api/queries_projects_v2.go:330
↓ 4 callersFunctionPromptGists
(prompter prompter.Prompter, client *http.Client, host string, cs *iostreams.ColorScheme)
pkg/cmd/gist/shared/shared.go:225
↓ 4 callersFunctionPromptWhenAmbiguousBaseRepoFunc
(baseRepoFn baseRepoFn, ios *iostreams.IOStreams, prompter prompter.Prompter)
pkg/cmd/secret/shared/base_repo.go:24
↓ 4 callersMethodPull
(remote, branch string)
pkg/cmd/extension/git.go:16
↓ 4 callersMethodPush
(ctx context.Context, remote string, ref string, mods ...CommandModifier)
git/client.go:910
↓ 4 callersMethodReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder.go:39
↓ 4 callersMethodRebuildContainer
(ctx context.Context, full bool)
internal/codespaces/rpc/invoker.go:46
↓ 4 callersMethodReplaceSlice
(handles []string)
pkg/cmd/pr/shared/params.go:317
↓ 4 callersMethodReplaceSlice
(logins []string)
pkg/cmd/pr/shared/editable.go:205
↓ 4 callersFunctionRepoGitIgnoreTemplates
RepoGitIgnoreTemplates fetches available repository gitignore templates. It uses API v3 here because gitignore template isn't supported by GraphQL.
api/queries_repo.go:1737
↓ 4 callersFunctionRepoLicenses
RepoLicenses fetches available repository licenses. It uses API v3 because licenses are not supported by GraphQL.
api/queries_repo.go:1705
↓ 4 callersMethodRepositories
(Query)
pkg/search/searcher.go:32
↓ 4 callersFunctionRequireNoAmbiguityBaseRepoFunc
RequireNoAmbiguityBaseRepoFunc returns a function to resolve the base repo, ensuring that there was only one option, regardless of whether the base re
pkg/cmd/secret/shared/base_repo.go:58
↓ 4 callersFunctionResolveHomeDir
ResolveHomeDir returns the user's home directory, or "" on error.
internal/skills/installer/installer.go:329
↓ 4 callersFunctionResolveRef
ResolveRef determines the git ref to use for a given owner/repo. Priority: explicit version > latest release tag > default branch.
internal/skills/discovery/discovery.go:208
↓ 4 callersFunctionResolveWorkflow
(p iprompter, io *iostreams.IOStreams, client *api.Client, repo ghrepo.Interface, prompt bool, workflowSelecto
pkg/cmd/workflow/shared/shared.go:195
↓ 4 callersMethodRoundTrip
(req *http.Request)
api/http_client.go:212
↓ 4 callersFunctionSerialize
Serialize writes a frontmatter map and body back to a SKILL.md string.
internal/skills/frontmatter/frontmatter.go:130
↓ 4 callersMethodSetAlternateScreenBufferEnabled
(enabled bool)
pkg/iostreams/iostreams.go:411
↓ 4 callersMethodSetSampleRate
(rate int)
internal/gh/ghtelemetry/telemetry.go:24
↓ 4 callersMethodSshDir
()
pkg/ssh/ssh_keys.go:91
↓ 4 callersMethodStdio
()
pkg/surveyext/editor_test.go:242
↓ 4 callersMethodStopAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:401
↓ 4 callersFunctionStubUpload
StubUpload registers one upload of name against repositoryID, answering with status and body. It matches on the query the upload carries, so a reques
internal/attachments/test.go:47
↓ 4 callersFunctionStubUploadToHost
StubUploadToHost is StubUpload plus the host the request reached. The matchers compare the path only, so the host is asserted in the responder or not
internal/attachments/test.go:54
↓ 4 callersFunctionTenantName
TenantName extracts the tenant name from tenancy host name and reports whether it found the tenant name.
internal/ghinstance/host.go:27
↓ 4 callersMethodToplevelDir
ToplevelDir returns the top-level directory path of the current repository.
git/client.go:729
↓ 4 callersMethodType
()
internal/codespaces/connection/tunnels_api_server_mock.go:364
↓ 4 callersMethodUnwrapOr
UnwrapOr returns the underlying value of a [Some] variant, or the provided value on a [None] variant.
pkg/option/option.go:81
↓ 4 callersMethodUnwrapOrZero
UnwrapOrZero returns the underlying value of a [Some] variant, or the zero value on a [None] variant.
pkg/option/option.go:101
↓ 4 callersFunctionUpdateProjectV2Items
UpdateProjectV2Items uses the addProjectV2ItemById and the deleteProjectV2Item mutations to add and delete items from projects. The addProjectItems an
api/queries_projects_v2.go:35
↓ 4 callersMethodUpgrade
(name string, force bool)
pkg/extensions/extension.go:36
↓ 4 callersMethodUsersForHost
(string)
pkg/cmd/auth/shared/login_flow.go:23
↓ 4 callersFunctionWrite
Write colorized JSON output parsed from reader
pkg/jsoncolor/jsoncolor.go:24
↓ 4 callersMethodaddDefaultsToPrompt
addDefaultsToPrompt adds default values to the prompt string.
internal/prompter/prompter.go:99
↓ 4 callersMethodappendMetadata
Appends the authentication token to the gRPC context
internal/codespaces/rpc/invoker.go:164
↓ 4 callersMethodask
(q survey.Prompt, response any, opts ...survey.AskOpt)
internal/prompter/prompter.go:578
↓ 4 callersFunctionassetsFromArgs
Resolved through the public entry point, so a fixture is built the way a command builds one.
internal/attachments/flags_test.go:35
↓ 4 callersFunctionblockRange
blockRange returns the byte range a block covers in the source.
internal/attachments/references.go:459
↓ 4 callersMethodbuildMultiSelectWithSearchForm
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/huh_prompter.go:109
↓ 4 callersMethodchooseVerifier
(issuer string)
pkg/cmd/attestation/verification/sigstore.go:206
↓ 4 callersMethodcleanExtensionUpdateDir
cleanExtensionUpdateDir deletes the extension-specific directory containing metadata used in checking for updates. Because extension names are not uni
pkg/cmd/extension/manager.go:877
↓ 4 callersMethodclone
()
pkg/cmd/pr/shared/editable.go:323
↓ 4 callersFunctioncomparableDestination
comparableDestination reduces a destination goldmark reported to the single form used to decide whether a run of source is the node it came from. Perc
internal/attachments/references.go:405
↓ 4 callersFunctionconvertIntToUint16
convertIntToUint16 converts the given int to a uint16.
internal/codespaces/portforwarder/port_forwarder.go:415
↓ 4 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/issue/create/create.go:201
↓ 4 callersFunctiondeleteRepo
(httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/repo/delete/http.go:11
↓ 4 callersFunctiondigestContainerImageArtifact
(url string, client oci.Client)
pkg/cmd/attestation/artifact/image.go:10
↓ 4 callersFunctiondown
()
internal/prompter/huh_prompter_test.go:81
↓ 4 callersFunctiondownloadRun
(opts *DownloadOptions)
pkg/cmd/release/download/download.go:142
↓ 4 callersFunctionfetchLatestRelease
fetchLatestRelease finds the latest published release for a repository.
pkg/cmd/extension/http.go:113
↓ 4 callersFunctionfieldByName
(v reflect.Value, field string)
pkg/search/result.go:449
↓ 4 callersFunctionfile_codespace_codespace_host_service_v1_proto_rawDescGZIP
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:290
↓ 4 callersFunctionformatValuesForUsageDocs
(values []string)
pkg/cmdutil/flags.go:68
↓ 4 callersFunctiongetAttestations
(o *Options, a artifact.DigestedArtifact)
pkg/cmd/attestation/verify/attestation.go:13
↓ 4 callersFunctiongetPubKey
(client *api.Client, host string, path safeurl.SafeURL)
pkg/cmd/secret/set/http.go:34
↓ 4 callersMethodgetRepositoryMeta
getRepositoryMeta fetches the node ID, database ID, and discussion-enabled flag for a repository.
pkg/cmd/discussion/client/client.go:832
↓ 4 callersFunctiongetVariables
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/variable/list/list.go:237
↓ 4 callersFunctionhttpResponseWithHeader
(status int, req *http.Request, body io.Reader, header http.Header)
pkg/httpmock/stub.go:274
↓ 4 callersMethodinfof
(format string, args ...any)
pkg/cmd/pr/merge/merge.go:559
↓ 4 callersFunctioninitialize
initialize generate slices over a range for test scenarios using the provided initializer.
pkg/search/searcher_test.go:1380
↓ 4 callersFunctionissueList
(client *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/list.go:232
↓ 4 callersFunctionkeyFor
(hostname string)
pkg/cmd/auth/shared/gitcredentials/helper_config.go:114
↓ 4 callersFunctionlistPullRequests
(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit i
pkg/cmd/pr/list/http.go:17
↓ 4 callersMethodloadManifest
()
pkg/cmd/extension/extension.go:224
↓ 4 callersFunctionnewAttachableMarkdown
newAttachableMarkdown scans markdown for the files it references, and refuses references that no asset URL can fix.
internal/attachments/references.go:67
↓ 4 callersFunctionnewContentWriter
newContentWriter returns the writer to wire up as ContentOut. When sanitize is true it inserts an asciisanitizer in front of the underlying writer; ot
pkg/iostreams/iostreams.go:503
↓ 4 callersFunctionnewService
newService is a test helper that constructs the internal service struct directly, bypassing the config/env parsing of NewService but still resolving c
internal/telemetry/telemetry_test.go:47
↓ 4 callersFunctionnewTestUploader
newTestUploader builds an uploader whose requests land in reg.
internal/attachments/client_test.go:45
↓ 4 callersFunctionnextPage
nextPage extracts the next page number from an API response's link header. if the provided link header is empty or there is no next page, zero is retu
pkg/search/searcher.go:349
↓ 4 callersFunctionparseFields
(opts *ApiOptions)
pkg/cmd/api/fields.go:16
↓ 4 callersFunctionprFromFixtures
hack for compatibility with old JSON fixture files
pkg/cmd/pr/view/view_test.go:211
↓ 4 callersFunctionpublishRun
(opts *PublishOptions)
pkg/cmd/skills/publish/publish.go:169
↓ 4 callersFunctionputSecret
(client *api.Client, host string, path safeurl.SafeURL, payload any)
pkg/cmd/secret/set/http.go:75
↓ 4 callersMethodqualifiedName
qualifiedName returns the namespace-qualified skill name (e.g. "author/skill") or just the skill name if there is no namespace.
pkg/cmd/skills/search/search.go:178
↓ 4 callersFunctionquote
(s string)
pkg/search/query.go:286
↓ 4 callersFunctionrepoCreate
repoCreate creates a new GitHub repository
pkg/cmd/repo/create/http.go:77
↓ 4 callersFunctionrepoMetaResp
(id string, discussionsEnabled bool)
pkg/cmd/discussion/client/client_test.go:2343
↓ 4 callersFunctionrequireKeyWithValue
(t *testing.T, cfg *config.Config, keys []string, value string)
internal/config/migration/multi_account_test.go:234
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/reopen/reopen_test.go:27
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/reopen/reopen_test.go:20
↓ 4 callersFunctionrunCommand
(rt http.RoundTripper, prompter prompter.Prompter, isTTY bool, cli string)
pkg/cmd/pr/review/review_test.go:169
↓ 4 callersFunctionrunMarkTemplate
(config markTemplateConfig)
pkg/cmd/project/mark-template/mark_template.go:89
↓ 4 callersFunctionrunSendTelemetry
(ctx context.Context, opts *SendTelemetryOptions)
pkg/cmd/send-telemetry/send_telemetry.go:76
↓ 4 callersMethodsearch
search makes a single-page REST search request for code, commits, issues, prs, or repos, and returns the link header from response for further paginat
pkg/search/searcher.go:207
↓ 4 callersFunctionsearchRun
(opts *SearchOptions)
pkg/cmd/skills/search/search.go:207
↓ 4 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/variable/set/set.go:143
↓ 4 callersFunctionshortenQuery
(q string)
api/query_builder.go:19
↓ 4 callersFunctionstubGitRemote
stubGitRemote registers CommandStubber stubs for git remote detection.
pkg/cmd/skills/publish/publish_test.go:31
↓ 4 callersFunctiontoggle
()
internal/prompter/huh_prompter_test.go:77
↓ 4 callersFunctiontransformSquashMergeOpts
transformSquashMergeOpts maps the user-facing squash merge commit message option to the two API fields: squash_merge_commit_title and squash_merge_com
pkg/cmd/repo/edit/edit.go:703
↓ 4 callersFunctiontranslate
(in string)
internal/docs/man_test.go:15
↓ 4 callersFunctionuserKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/gpg-key/list/http.go:37
↓ 4 callersFunctionwriteFiles
writeFiles puts real files in a temporary working directory, because uploading opens the path it is given.
internal/attachments/attach_test.go:18
↓ 3 callersMethodAPIHostForHost
APIHostForHost returns the api_host configured for host, reporting false when the host has no api_host set. See config.AuthConfig.APIHostForHost.
internal/gh/gh.go:172
↓ 3 callersMethodAccessiblePrompterEnabled
()
pkg/iostreams/iostreams.go:478
← previousnext →601–700 of 6,141, ranked by callers