Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 4 callers
Function
runCloneCommandWithConfig
(httpClient *http.Client, cfg gh.Config, cli string)
pkg/cmd/repo/clone/clone_test.go:118
↓ 4 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/reopen/reopen_test.go:27
↓ 4 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/reopen/reopen_test.go:20
↓ 4 callers
Function
runCommand
(rt http.RoundTripper, prompter prompter.Prompter, isTTY bool, cli string)
pkg/cmd/pr/review/review_test.go:169
↓ 4 callers
Function
runMarkTemplate
(config markTemplateConfig)
pkg/cmd/project/mark-template/mark_template.go:89
↓ 4 callers
Function
runSendTelemetry
(ctx context.Context, opts *SendTelemetryOptions)
pkg/cmd/send-telemetry/send_telemetry.go:76
↓ 4 callers
Method
search
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 callers
Function
searchRun
(opts *SearchOptions)
pkg/cmd/skills/search/search.go:207
↓ 4 callers
Function
serverHostname
serverHostname returns the hostname of a test server URL, so config can be keyed by host, as production config is, rather than host:port.
api/http_client_test.go:425
↓ 4 callers
Method
setRefreshableInConfig
(hostname, username string, credential gh.Credential)
internal/config/refreshable.go:342
↓ 4 callers
Function
setRun
(opts *SetOptions)
pkg/cmd/variable/set/set.go:143
↓ 4 callers
Function
shellQuote
(s string)
script/ghmock/run.go:271
↓ 4 callers
Function
shortenQuery
(q string)
api/query_builder.go:19
↓ 4 callers
Function
stubGitRemote
stubGitRemote registers CommandStubber stubs for git remote detection.
pkg/cmd/skills/publish/publish_test.go:31
↓ 4 callers
Function
stubResolveLatestTag
stubResolveLatestTag registers API stubs for latest release + tag resolution.
pkg/cmd/skills/install/install_test.go:236
↓ 4 callers
Function
toggle
()
internal/prompter/huh_prompter_test.go:77
↓ 4 callers
Function
tokenRun
(opts *TokenOptions)
pkg/cmd/auth/token/token.go:63
↓ 4 callers
Function
transformSquashMergeOpts
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:702
↓ 4 callers
Function
translate
(in string)
internal/docs/man_test.go:15
↓ 4 callers
Function
userKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/gpg-key/list/http.go:37
↓ 4 callers
Function
viewRun
(opts *ViewOptions)
pkg/cmd/pr/view/view.go:111
↓ 4 callers
Function
wait
()
evals/src/graders.test.ts:32
↓ 4 callers
Function
waitForRepositoryReady
(check func() (bool, error), sleep func(time.Duration))
acceptance/acceptance_test.go:184
↓ 4 callers
Function
waitForWorkflowRunStatus
(view func() (string, error), expected string, sleep func(time.Duration))
acceptance/acceptance_test.go:200
↓ 3 callers
Method
APIHostForHost
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:271
↓ 3 callers
Method
AccessiblePrompterEnabled
()
pkg/iostreams/iostreams.go:479
↓ 3 callers
Method
AddComment
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 callers
Method
AdvancedIssueSearchString
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 callers
Function
AgentIDs
AgentIDs returns the IDs of all known agents as a slice.
internal/skills/registry/registry.go:372
↓ 3 callers
Method
Ask
(qs []*survey.Question, response any)
pkg/cmd/codespace/common.go:151
↓ 3 callers
Method
Ask
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 callers
Method
Association
()
pkg/cmd/pr/shared/comments.go:18
↓ 3 callers
Method
AuthFeatures
()
internal/featuredetection/feature_detection.go:27
↓ 3 callers
Function
BaseRepoFunc
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:84
↓ 3 callers
Function
BinaryContentType
BinaryContentType reports whether content appears to be binary and, if so, returns its detected MIME type. Textual content returns ("", false).
pkg/iostreams/content.go:36
↓ 3 callers
Function
BinaryResponse
(body []byte)
pkg/httpmock/stub.go:130
↓ 3 callers
Method
Blur
()
internal/prompter/multi_select_with_search.go:389
↓ 3 callers
Function
BranchDeleteRemote
(client *Client, repo ghrepo.Interface, branch string)
api/queries_pr.go:872
↓ 3 callers
Function
BuildDigestPolicyOption
BuildDigestPolicyOption builds a verify.ArtifactPolicyOption from the given artifact digest and digest algorithm
pkg/cmd/attestation/verification/policy.go:19
↓ 3 callers
Function
CategorizeHost
(host string)
internal/ghinstance/host.go:109
↓ 3 callers
Method
Clipboard
Clipboard returns the configured clipboard setting, ignoring host scoping since clipboard is a global setting.
internal/gh/gh.go:50
↓ 3 callers
Method
Close
()
pkg/cmd/api/pagination.go:193
↓ 3 callers
Function
ColorForPRState
(pr api.PullRequest)
pkg/cmd/pr/shared/display.go:28
↓ 3 callers
Method
ColorLabels
ColorLabels returns the configured color_label setting, optionally scoped by host.
internal/gh/gh.go:52
↓ 3 callers
Method
ConfiguredHelper
(hostname string)
pkg/cmd/auth/shared/git_credential.go:14
↓ 3 callers
Method
Content
()
pkg/cmd/pr/shared/comments.go:19
↓ 3 callers
Function
CopyGuardedContent
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:75
↓ 3 callers
Method
Create
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 callers
Method
CreateCodespace
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 callers
Function
CredentialPatternFromGitURL
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 callers
Function
CredentialPatternFromHost
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 callers
Method
CurrentVersion
()
pkg/extensions/extension.go:22
↓ 3 callers
Method
CyanBold
(t string)
pkg/iostreams/color.go:174
↓ 3 callers
Function
DefaultOptionsWithCacheSetting
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:21
↓ 3 callers
Method
DeleteLocalTag
(ctx context.Context, tag string)
git/client.go:652
↓ 3 callers
Method
DeleteSubscription
DeleteSubscription deletes the subscription with the given ID.
pkg/cmd/event/client/client.go:65
↓ 3 callers
Method
Description
()
pkg/cmd/extension/browse/browse.go:55
↓ 3 callers
Function
DigestAlgForRef
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 callers
Function
DisableAuthCheckFlag
(flag *pflag.Flag)
pkg/cmdutil/auth_check.go:21
↓ 3 callers
Function
DiscoverLocalSkillsWithOptions
DiscoverLocalSkillsWithOptions finds skills in a local directory using the same conventions as remote discovery, with configurable discovery behavior.
internal/skills/discovery/discovery.go:1003
↓ 3 callers
Function
DiscoverSkillByPathWithOptions
DiscoverSkillByPathWithOptions looks up a single skill by its exact path in the repository, applying the given options.
internal/skills/discovery/discovery.go:745
↓ 3 callers
Method
Error
()
pkg/cmdutil/errors.go:26
↓ 3 callers
Method
Export
Export returns the reaction group as a map for JSON output.
pkg/cmd/discussion/client/types.go:265
↓ 3 callers
Method
ExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:673
↓ 3 callers
Method
ExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:1044
↓ 3 callers
Function
FetchRefSHA
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface, tagName string)
pkg/cmd/release/shared/fetch.go:138
↓ 3 callers
Function
FindWorkflow
FindWorkflow looks up a workflow either by numeric database ID, file name, or its Name field
pkg/cmd/workflow/shared/shared.go:129
↓ 3 callers
Method
Focus
()
internal/prompter/multi_select_with_search.go:381
↓ 3 callers
Method
Follow
(fetcher func() ([]byte, error), w io.Writer, io *iostreams.IOStreams)
pkg/cmd/agent-task/shared/log.go:19
↓ 3 callers
Function
ForkRepo
ForkRepo forks the repository on GitHub and returns the new repository
api/queries_repo.go:595
↓ 3 callers
Method
ForwardPort
(ctx context.Context, opts ForwardPortOpts)
internal/codespaces/portforwarder/port_forwarder.go:46
↓ 3 callers
Function
FuzzyAgoAbbr
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 callers
Function
GetAnnotations
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 callers
Function
GetCaches
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 callers
Method
GetCodespace
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 callers
Function
GetMockApi
(allowOrgPorts bool)
pkg/cmd/codespace/ports_test.go:165
↓ 3 callers
Function
GetRawGistFile
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 callers
Function
GetRepoIDs
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 callers
Function
GetRuns
(client *api.Client, repo ghrepo.Interface, opts *FilterOptions, limit int)
pkg/cmd/run/shared/shared.go:368
↓ 3 callers
Function
GetRunsWithFilter
GetRunsWithFilter fetches 50 runs from the API and filters them in-memory
pkg/cmd/run/shared/shared.go:349
↓ 3 callers
Function
GetScopes
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 callers
Method
GetTrustDomain
GetTrustDomain returns the current trust domain. If the default is used the empty string is returned
pkg/cmd/attestation/api/client.go:291
↓ 3 callers
Function
GistHost
(hostname string)
internal/ghinstance/host.go:80
↓ 3 callers
Function
GlobPaths
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 callers
Function
GroupedCommands
(cmd *cobra.Command)
pkg/cmd/root/help.go:260
↓ 3 callers
Function
HasHiddenDirSkills
HasHiddenDirSkills returns true if any of the given skills were discovered in hidden directories.
internal/skills/discovery/discovery.go:97
↓ 3 callers
Function
HasMinimumScopes
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 callers
Method
HasTemplates
()
pkg/cmd/pr/shared/templates.go:169
↓ 3 callers
Function
HeaderHasMinimumScopes
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 callers
Method
Identifier
()
pkg/cmd/pr/shared/commentable.go:36
↓ 3 callers
Function
IndexesFor
(options []string, answers ...string)
internal/prompter/test.go:159
↓ 3 callers
Method
Input
Input prompts the user to enter a string value.
internal/prompter/prompter.go:34
↓ 3 callers
Method
InstallLocal
(dir string)
pkg/extensions/extension.go:35
↓ 3 callers
Method
IsConfigured
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 callers
Function
IsOfficial
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 callers
Method
IsOpen
()
api/queries_pr.go:346
↓ 3 callers
Method
IsPinned
()
pkg/extensions/extension.go:24
↓ 3 callers
Function
IsSkillPath
IsSkillPath reports whether a skill selector looks like a repo-relative path rather than a simple skill name.
internal/skills/discovery/discovery.go:446
↓ 3 callers
Function
IsSpecCompliant
IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.
internal/skills/discovery/discovery.go:1144
↓ 3 callers
Method
LabelsToIDs
(names []string)
api/queries_repo.go:809
← previous
next →
901–1,000 of 7,572, ranked by callers