Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 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:703
↓ 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:108
↓ 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:270
↓ 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:366
↓ 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
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:83
↓ 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:24
↓ 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:49
↓ 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:51
↓ 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:63
↓ 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:54
↓ 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:974
↓ 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:716
↓ 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
FetchRepoVisibility
FetchRepoVisibility returns the repository visibility: "public", "private", or "internal".
internal/skills/discovery/discovery.go:192
↓ 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
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:170
↓ 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:417
↓ 3 callers
Function
IsSpecCompliant
IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.
internal/skills/discovery/discovery.go:1115
↓ 3 callers
Method
LabelsToIDs
(names []string)
api/queries_repo.go:809
↓ 3 callers
Method
LastCommit
()
pkg/cmd/browse/browse.go:359
↓ 3 callers
Method
LegacyBody
()
pkg/cmd/pr/shared/templates.go:177
↓ 3 callers
Method
Link
()
pkg/cmd/pr/shared/comments.go:24
↓ 3 callers
Method
List
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 callers
Method
ListLabels
ListLabels returns the labels available in a repository.
pkg/cmd/discussion/client/client.go:36
↓ 3 callers
Method
LocalPublicKeys
()
pkg/ssh/ssh_keys.go:37
↓ 3 callers
Method
Logf
(format string, args ...any)
script/api-host-gateway/gateway/main.go:307
↓ 3 callers
Method
Login
()
api/queries_repo.go:1167
↓ 3 callers
Function
MatchCategory
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 callers
Method
MilestoneToID
(title string)
api/queries_repo.go:942
↓ 3 callers
Method
Minutes
()
pkg/cmd/codespace/create.go:61
↓ 3 callers
Method
MultiSelect
(string, []string, []string)
pkg/cmd/run/download/download.go:37
↓ 3 callers
Method
MultiSelect
MultiSelect prompts the user to select one or more options from a list of options.
internal/prompter/prompter.go:23
↓ 3 callers
Method
MultiSelectWithSearch
(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) prompter.
pkg/cmd/pr/shared/survey.go:44
↓ 3 callers
Method
NameForSubmit
()
pkg/cmd/pr/shared/templates.go:119
↓ 3 callers
Function
NewCmdApi
(f *cmdutil.Factory, runF func(*ApiOptions) error)
pkg/cmd/api/api.go:68
← previous
next →
901–1,000 of 7,487, ranked by callers