MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 4 callersMethodSkip
()
internal/prompter/multi_select_with_search.go:396
↓ 4 callersMethodSshDir
()
pkg/ssh/ssh_keys.go:91
↓ 4 callersMethodStdio
()
pkg/surveyext/editor_test.go:242
↓ 4 callersMethodStopAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:401
↓ 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 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:27
↓ 4 callersFunctionWithRepoDir
(repoDir string)
git/command.go:107
↓ 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 interface{}, opts ...survey.AskOpt)
internal/prompter/prompter.go:578
↓ 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:322
↓ 4 callersFunctionconvertIntToUint16
convertIntToUint16 converts the given int to a uint16.
internal/codespaces/portforwarder/port_forwarder.go:420
↓ 4 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/issue/create/create.go:163
↓ 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 callersFunctionextensionHTTPClient
(t *testing.T, path string, status int, body string)
pkg/cmd/extension/http_test.go:15
↓ 4 callersFunctionfetchLatestRelease
fetchLatestRelease finds the latest published release for a repository.
pkg/cmd/extension/http.go:119
↓ 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 ...interface{})
pkg/cmd/pr/merge/merge.go:496
↓ 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 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 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:346
↓ 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:206
↓ 4 callersFunctionpublishRun
(opts *PublishOptions)
pkg/cmd/skills/publish/publish.go:168
↓ 4 callersFunctionputSecret
(client *api.Client, host string, path safeurl.SafeURL, payload interface{})
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 callersFunctionrequireExtensionHTTPError
(t *testing.T, err error, status int)
pkg/cmd/extension/http_test.go:29
↓ 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:208
↓ 4 callersFunctionsearchRun
(opts *SearchOptions)
pkg/cmd/skills/search/search.go:207
↓ 4 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/variable/set/set.go:142
↓ 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:30
↓ 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:706
↓ 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
↓ 3 callersMethodAccessiblePrompterEnabled
()
pkg/iostreams/iostreams.go:478
↓ 3 callersMethodActiveUser
ActiveUser will retrieve the username for the active user at the given hostname. This will not be accurate if the oauth token is set from an environme
internal/config/config.go:319
↓ 3 callersMethodAddComment
AddComment adds a comment or reply to a discussion. If replyToID is non-empty, the comment is created as a reply to that comment.
pkg/cmd/discussion/client/client.go:48
↓ 3 callersMethodAdvancedIssueSearchString
AdvancedIssueSearchString returns the string representation of the query compatible with the advanced issue search syntax. The query can be used in Is
pkg/search/query.go:153
↓ 3 callersFunctionAgentIDs
AgentIDs returns the IDs of all known agents as a slice.
internal/skills/registry/registry.go:365
↓ 3 callersMethodAsk
(qs []*survey.Question, response interface{})
pkg/cmd/codespace/common.go:151
↓ 3 callersMethodAsk
ask asks survey questions on the terminal, using standard options. It fails unless hasTTY, but ideally callers should avoid calling it in that case.
pkg/cmd/codespace/common.go:158
↓ 3 callersMethodAssociation
()
pkg/cmd/pr/shared/comments.go:18
↓ 3 callersFunctionBaseRepoFunc
BaseRepoFunc requests a list of Remotes, and selects the first one. Although Remotes is injected via the factory so it looks like the function might b
pkg/cmd/factory/default.go:74
↓ 3 callersFunctionBinaryContentType
BinaryContentType reports whether content appears to be binary and, if so, returns its detected MIME type. Textual content returns ("", false).
pkg/iostreams/content.go:24
↓ 3 callersFunctionBranchDeleteRemote
(client *Client, repo ghrepo.Interface, branch string)
api/queries_pr.go:847
↓ 3 callersFunctionBuildDigestPolicyOption
BuildDigestPolicyOption builds a verify.ArtifactPolicyOption from the given artifact digest and digest algorithm
pkg/cmd/attestation/verification/policy.go:19
↓ 3 callersFunctionCategorizeHost
(host string)
internal/ghinstance/host.go:100
↓ 3 callersMethodCheckoutNewBranch
(ctx context.Context, remoteName, branch string)
git/client.go:631
↓ 3 callersMethodClose
()
pkg/cmd/api/pagination.go:193
↓ 3 callersFunctionColorForPRState
(pr api.PullRequest)
pkg/cmd/pr/shared/display.go:28
↓ 3 callersMethodColorLabels
ColorLabels returns the configured color_label setting, optionally scoped by host.
internal/gh/gh.go:45
↓ 3 callersMethodCommits
(Query)
pkg/search/searcher.go:32
↓ 3 callersMethodConfig
(ctx context.Context, name string)
git/client.go:266
↓ 3 callersMethodContent
()
pkg/cmd/pr/shared/comments.go:19
↓ 3 callersFunctionCopyGuardedContent
CopyGuardedContent writes external content from r to w under the safety model used by byte-moving commands: binary content is refused when w targets a
pkg/iostreams/content.go:63
↓ 3 callersMethodCreateCodespace
CreateCodespace creates a codespace with the given parameters and returns a non-nil error if it fails to create.
internal/codespaces/api/api.go:895
↓ 3 callersFunctionCredentialPatternFromHost
CredentialPatternFromHost expects host to be in the form "github.com" and returns the credential pattern that should be used for it. It does not perfo
git/client.go:134
↓ 3 callersMethodCurrentVersion
()
pkg/extensions/extension.go:22
↓ 3 callersFunctionDefaultOptionsWithCacheSetting
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:21
↓ 3 callersMethodDelete
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete.go:28
↓ 3 callersMethodDeleteLocalBranch
(ctx context.Context, branch string)
git/client.go:605
↓ 3 callersFunctionDigestAlgForRef
DigestAlgForRef returns the digest algorithm name corresponding to the given git ref SHA. SHA-1 git object IDs are 40 hex characters and SHA-256 git o
pkg/cmd/release/shared/fetch.go:182
↓ 3 callersMethodDisable
()
internal/gh/ghtelemetry/telemetry.go:14
↓ 3 callersFunctionDisableAuthCheckFlag
(flag *pflag.Flag)
pkg/cmdutil/auth_check.go:21
↓ 3 callersFunctionDiscoverLocalSkillsWithOptions
DiscoverLocalSkillsWithOptions finds skills in a local directory using the same conventions as remote discovery, with configurable discovery behavior.
internal/skills/discovery/discovery.go:974
↓ 3 callersFunctionDiscoverSkillByPathWithOptions
DiscoverSkillByPathWithOptions looks up a single skill by its exact path in the repository, applying the given options.
internal/skills/discovery/discovery.go:716
↓ 3 callersMethodError
()
pkg/cmdutil/errors.go:26
← previousnext →601–700 of 5,909, ranked by callers