MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 4 callersFunctiontoggle
()
internal/prompter/huh_prompter_test.go:77
↓ 4 callersFunctiontokenRun
(opts *TokenOptions)
pkg/cmd/auth/token/token.go:63
↓ 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 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/pr/view/view.go:108
↓ 4 callersFunctionwait
()
evals/src/graders.test.ts:32
↓ 4 callersFunctionwaitForRepositoryReady
(check func() (bool, error), sleep func(time.Duration))
acceptance/acceptance_test.go:184
↓ 4 callersFunctionwaitForWorkflowRunStatus
(view func() (string, error), expected string, sleep func(time.Duration))
acceptance/acceptance_test.go:200
↓ 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:270
↓ 3 callersMethodAccessiblePrompterEnabled
()
pkg/iostreams/iostreams.go:479
↓ 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:45
↓ 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:366
↓ 3 callersMethodAsk
(qs []*survey.Question, response any)
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:83
↓ 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 callersFunctionBinaryResponse
(body []byte)
pkg/httpmock/stub.go:130
↓ 3 callersMethodBlur
()
internal/prompter/multi_select_with_search.go:389
↓ 3 callersFunctionBranchDeleteRemote
(client *Client, repo ghrepo.Interface, branch string)
api/queries_pr.go:872
↓ 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:109
↓ 3 callersMethodClipboard
Clipboard returns the configured clipboard setting, ignoring host scoping since clipboard is a global setting.
internal/gh/gh.go:49
↓ 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:51
↓ 3 callersMethodConfiguredHelper
(hostname string)
pkg/cmd/auth/shared/git_credential.go:14
↓ 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 callersMethodCreate
Create creates one artifact on an issue and returns it. The API doesn't return a new artifact's description.
pkg/cmd/issue/artifact/client/client.go:41
↓ 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 callersFunctionCredentialPatternFromGitURL
CredentialPatternFromGitURL takes a git remote URL e.g. "https://github.com/cli/cli.git" or "git@github.com:cli/cli.git" and returns the credential pa
git/client.go:117
↓ 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:128
↓ 3 callersMethodCurrentVersion
()
pkg/extensions/extension.go:22
↓ 3 callersMethodCyanBold
(t string)
pkg/iostreams/color.go:174
↓ 3 callersFunctionDefaultOptionsWithCacheSetting
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:21
↓ 3 callersMethodDeleteLocalTag
(ctx context.Context, tag string)
git/client.go:652
↓ 3 callersMethodDeleteSubscription
DeleteSubscription deletes the subscription with the given ID.
pkg/cmd/event/client/client.go:54
↓ 3 callersMethodDescription
()
pkg/cmd/extension/browse/browse.go:55
↓ 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:173
↓ 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
↓ 3 callersMethodExport
Export returns the reaction group as a map for JSON output.
pkg/cmd/discussion/client/types.go:265
↓ 3 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:673
↓ 3 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:1044
↓ 3 callersFunctionFetchRefSHA
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface, tagName string)
pkg/cmd/release/shared/fetch.go:138
↓ 3 callersFunctionFetchRepoVisibility
FetchRepoVisibility returns the repository visibility: "public", "private", or "internal".
internal/skills/discovery/discovery.go:192
↓ 3 callersFunctionFindWorkflow
FindWorkflow looks up a workflow either by numeric database ID, file name, or its Name field
pkg/cmd/workflow/shared/shared.go:129
↓ 3 callersMethodFocus
()
internal/prompter/multi_select_with_search.go:381
↓ 3 callersMethodFollow
(fetcher func() ([]byte, error), w io.Writer, io *iostreams.IOStreams)
pkg/cmd/agent-task/shared/log.go:19
↓ 3 callersFunctionForkRepo
ForkRepo forks the repository on GitHub and returns the new repository
api/queries_repo.go:595
↓ 3 callersMethodForwardPort
(ctx context.Context, opts ForwardPortOpts)
internal/codespaces/portforwarder/port_forwarder.go:46
↓ 3 callersFunctionFuzzyAgoAbbr
FuzzyAgoAbbr is an abbreviated version of FuzzyAgo. It returns a human readable string of the time duration between a and b that is estimated to the n
internal/text/text.go:77
↓ 3 callersFunctionGetAnnotations
GetAnnotations fetches annotations from the REST API. If the job has no annotations, an empty slice is returned. If the API returns a 403, a custom E
pkg/cmd/run/shared/shared.go:282
↓ 3 callersFunctionGetCaches
Return a list of caches for a repository. Pass a negative limit to request all pages from the API until all caches have been fetched.
pkg/cmd/cache/shared/shared.go:48
↓ 3 callersMethodGetCodespace
GetCodespace returns the user codespace based on the provided name. If the codespace is not found, an error is returned. If includeConnection is true,
internal/codespaces/api/api.go:539
↓ 3 callersFunctionGetRawGistFile
GetRawGistFile fetches the full content of a gist file from its raw URL. The bytes are external content, so they are returned as iostreams.Untrusted t
pkg/cmd/gist/shared/shared.go:257
↓ 3 callersFunctionGetRepoIDs
MapReposToIDs retrieves a set of IDs for the given set of repositories. This is similar logic to RepoNetwork, but only fetches databaseId and does not
api/queries_repo.go:1643
↓ 3 callersFunctionGetRuns
(client *api.Client, repo ghrepo.Interface, opts *FilterOptions, limit int)
pkg/cmd/run/shared/shared.go:368
↓ 3 callersFunctionGetRunsWithFilter
GetRunsWithFilter fetches 50 runs from the API and filters them in-memory
pkg/cmd/run/shared/shared.go:349
↓ 3 callersFunctionGetScopes
GetScopes performs a GitHub API request and returns the value of the X-Oauth-Scopes header. The token is passed explicitly because this runs before t
pkg/cmd/auth/shared/oauth_scopes.go:35
↓ 3 callersMethodGetTrustDomain
GetTrustDomain returns the current trust domain. If the default is used the empty string is returned
pkg/cmd/attestation/api/client.go:291
↓ 3 callersFunctionGistHost
(hostname string)
internal/ghinstance/host.go:80
↓ 3 callersFunctionGlobPaths
GlobPaths expands a list of file patterns into a list of file paths. If no files match a pattern, that pattern will return an error. If no pattern is
pkg/cmdutil/args.go:103
↓ 3 callersFunctionGroupedCommands
(cmd *cobra.Command)
pkg/cmd/root/help.go:260
↓ 3 callersFunctionHasHiddenDirSkills
HasHiddenDirSkills returns true if any of the given skills were discovered in hidden directories.
internal/skills/discovery/discovery.go:97
↓ 3 callersFunctionHasMinimumScopes
HasMinimumScopes performs a GitHub API request and returns an error if the token used in the request lacks the minimum required scopes for performing
pkg/cmd/auth/shared/oauth_scopes.go:61
↓ 3 callersMethodHasTemplates
()
pkg/cmd/pr/shared/templates.go:170
↓ 3 callersFunctionHeaderHasMinimumScopes
HeaderHasMinimumScopes parses the comma separated scopesHeader string and returns an error if it lacks the minimum required scopes for performing API
pkg/cmd/auth/shared/oauth_scopes.go:72
↓ 3 callersMethodIdentifier
()
pkg/cmd/pr/shared/commentable.go:36
↓ 3 callersFunctionIndexesFor
(options []string, answers ...string)
internal/prompter/test.go:159
↓ 3 callersMethodInput
Input prompts the user to enter a string value.
internal/prompter/prompter.go:34
↓ 3 callersMethodInstallLocal
(dir string)
pkg/extensions/extension.go:35
↓ 3 callersMethodIsConfigured
IsConfigured returns true if the helper has a non-empty command, i.e. the git config had an entry
pkg/cmd/auth/shared/gitcredentials/helper_config.go:73
↓ 3 callersFunctionIsOfficial
IsOfficial reports whether the given extension command name and owner match an entry in the OfficialExtensions registry. Owner must be checked alongsi
pkg/extensions/official.go:48
↓ 3 callersMethodIsOpen
()
api/queries_pr.go:346
↓ 3 callersMethodIsPinned
()
pkg/extensions/extension.go:24
↓ 3 callersFunctionIsSkillPath
IsSkillPath reports whether a skill selector looks like a repo-relative path rather than a simple skill name.
internal/skills/discovery/discovery.go:417
↓ 3 callersFunctionIsSpecCompliant
IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.
internal/skills/discovery/discovery.go:1115
↓ 3 callersMethodLabelsToIDs
(names []string)
api/queries_repo.go:809
↓ 3 callersMethodLastCommit
()
pkg/cmd/browse/browse.go:359
↓ 3 callersMethodLegacyBody
()
pkg/cmd/pr/shared/templates.go:177
↓ 3 callersMethodLink
()
pkg/cmd/pr/shared/comments.go:24
↓ 3 callersMethodList
List returns the artifacts on an issue in the order the API returns them, which is number order. An empty artifactType lists every type, and a limit o
pkg/cmd/issue/artifact/client/client.go:33
↓ 3 callersMethodListLabels
ListLabels returns the labels available in a repository.
pkg/cmd/discussion/client/client.go:36
↓ 3 callersMethodLocalPublicKeys
()
pkg/ssh/ssh_keys.go:37
↓ 3 callersMethodLogf
(format string, args ...any)
script/api-host-gateway/gateway/main.go:307
↓ 3 callersMethodLogin
()
api/queries_repo.go:1167
↓ 3 callersFunctionMatchCategory
MatchCategory finds a category by name or slug (case-insensitive). It prefers an exact slug match over a name match, so users are encouraged to use sl
pkg/cmd/discussion/shared/categories.go:14
↓ 3 callersMethodMilestoneToID
(title string)
api/queries_repo.go:942
↓ 3 callersMethodMinutes
()
pkg/cmd/codespace/create.go:61
↓ 3 callersMethodMultiSelect
(string, []string, []string)
pkg/cmd/run/download/download.go:37
↓ 3 callersMethodMultiSelect
MultiSelect prompts the user to select one or more options from a list of options.
internal/prompter/prompter.go:23
↓ 3 callersMethodMultiSelectWithSearch
(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) prompter.
pkg/cmd/pr/shared/survey.go:44
↓ 3 callersMethodNameForSubmit
()
pkg/cmd/pr/shared/templates.go:119
↓ 3 callersFunctionNewCmdApi
(f *cmdutil.Factory, runF func(*ApiOptions) error)
pkg/cmd/api/api.go:68
← previousnext →901–1,000 of 7,487, ranked by callers