Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
5,909 in github.com/cli/cli
⨍
Functions
5,909
◇
Types & classes
1,299
↓ 4 callers
Method
Skip
()
internal/prompter/multi_select_with_search.go:396
↓ 4 callers
Method
SshDir
()
pkg/ssh/ssh_keys.go:91
↓ 4 callers
Method
Stdio
()
pkg/surveyext/editor_test.go:242
↓ 4 callers
Method
StopAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:401
↓ 4 callers
Function
TenantName
TenantName extracts the tenant name from tenancy host name and reports whether it found the tenant name.
internal/ghinstance/host.go:27
↓ 4 callers
Method
UnwrapOr
UnwrapOr returns the underlying value of a [Some] variant, or the provided value on a [None] variant.
pkg/option/option.go:81
↓ 4 callers
Method
UnwrapOrZero
UnwrapOrZero returns the underlying value of a [Some] variant, or the zero value on a [None] variant.
pkg/option/option.go:101
↓ 4 callers
Function
UpdateProjectV2Items
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 callers
Method
Upgrade
(name string, force bool)
pkg/extensions/extension.go:36
↓ 4 callers
Method
UsersForHost
(string)
pkg/cmd/auth/shared/login_flow.go:27
↓ 4 callers
Function
WithRepoDir
(repoDir string)
git/command.go:107
↓ 4 callers
Function
Write
Write colorized JSON output parsed from reader
pkg/jsoncolor/jsoncolor.go:24
↓ 4 callers
Method
addDefaultsToPrompt
addDefaultsToPrompt adds default values to the prompt string.
internal/prompter/prompter.go:99
↓ 4 callers
Method
appendMetadata
Appends the authentication token to the gRPC context
internal/codespaces/rpc/invoker.go:164
↓ 4 callers
Method
ask
(q survey.Prompt, response interface{}, opts ...survey.AskOpt)
internal/prompter/prompter.go:578
↓ 4 callers
Method
buildMultiSelectWithSearchForm
(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSea
internal/prompter/huh_prompter.go:109
↓ 4 callers
Method
chooseVerifier
(issuer string)
pkg/cmd/attestation/verification/sigstore.go:206
↓ 4 callers
Method
cleanExtensionUpdateDir
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 callers
Method
clone
()
pkg/cmd/pr/shared/editable.go:322
↓ 4 callers
Function
convertIntToUint16
convertIntToUint16 converts the given int to a uint16.
internal/codespaces/portforwarder/port_forwarder.go:420
↓ 4 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/issue/create/create.go:163
↓ 4 callers
Function
digestContainerImageArtifact
(url string, client oci.Client)
pkg/cmd/attestation/artifact/image.go:10
↓ 4 callers
Function
down
()
internal/prompter/huh_prompter_test.go:81
↓ 4 callers
Function
downloadRun
(opts *DownloadOptions)
pkg/cmd/release/download/download.go:142
↓ 4 callers
Function
extensionHTTPClient
(t *testing.T, path string, status int, body string)
pkg/cmd/extension/http_test.go:15
↓ 4 callers
Function
fetchLatestRelease
fetchLatestRelease finds the latest published release for a repository.
pkg/cmd/extension/http.go:119
↓ 4 callers
Function
fieldByName
(v reflect.Value, field string)
pkg/search/result.go:449
↓ 4 callers
Function
file_codespace_codespace_host_service_v1_proto_rawDescGZIP
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:290
↓ 4 callers
Function
formatValuesForUsageDocs
(values []string)
pkg/cmdutil/flags.go:68
↓ 4 callers
Function
getAttestations
(o *Options, a artifact.DigestedArtifact)
pkg/cmd/attestation/verify/attestation.go:13
↓ 4 callers
Function
getPubKey
(client *api.Client, host string, path safeurl.SafeURL)
pkg/cmd/secret/set/http.go:34
↓ 4 callers
Method
getRepositoryMeta
getRepositoryMeta fetches the node ID, database ID, and discussion-enabled flag for a repository.
pkg/cmd/discussion/client/client.go:832
↓ 4 callers
Function
getVariables
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/variable/list/list.go:237
↓ 4 callers
Function
httpResponseWithHeader
(status int, req *http.Request, body io.Reader, header http.Header)
pkg/httpmock/stub.go:274
↓ 4 callers
Method
infof
(format string, args ...interface{})
pkg/cmd/pr/merge/merge.go:496
↓ 4 callers
Function
initialize
initialize generate slices over a range for test scenarios using the provided initializer.
pkg/search/searcher_test.go:1380
↓ 4 callers
Function
issueList
(client *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/list.go:232
↓ 4 callers
Function
keyFor
(hostname string)
pkg/cmd/auth/shared/gitcredentials/helper_config.go:114
↓ 4 callers
Function
listPullRequests
(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit i
pkg/cmd/pr/list/http.go:17
↓ 4 callers
Method
loadManifest
()
pkg/cmd/extension/extension.go:224
↓ 4 callers
Function
newContentWriter
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 callers
Function
newService
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 callers
Function
nextPage
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 callers
Function
parseFields
(opts *ApiOptions)
pkg/cmd/api/fields.go:16
↓ 4 callers
Function
prFromFixtures
hack for compatibility with old JSON fixture files
pkg/cmd/pr/view/view_test.go:206
↓ 4 callers
Function
publishRun
(opts *PublishOptions)
pkg/cmd/skills/publish/publish.go:168
↓ 4 callers
Function
putSecret
(client *api.Client, host string, path safeurl.SafeURL, payload interface{})
pkg/cmd/secret/set/http.go:75
↓ 4 callers
Method
qualifiedName
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 callers
Function
quote
(s string)
pkg/search/query.go:286
↓ 4 callers
Function
repoCreate
repoCreate creates a new GitHub repository
pkg/cmd/repo/create/http.go:77
↓ 4 callers
Function
repoMetaResp
(id string, discussionsEnabled bool)
pkg/cmd/discussion/client/client_test.go:2343
↓ 4 callers
Function
requireExtensionHTTPError
(t *testing.T, err error, status int)
pkg/cmd/extension/http_test.go:29
↓ 4 callers
Function
requireKeyWithValue
(t *testing.T, cfg *config.Config, keys []string, value string)
internal/config/migration/multi_account_test.go:234
↓ 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:208
↓ 4 callers
Function
searchRun
(opts *SearchOptions)
pkg/cmd/skills/search/search.go:207
↓ 4 callers
Function
setRun
(opts *SetOptions)
pkg/cmd/variable/set/set.go:142
↓ 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:30
↓ 4 callers
Function
toggle
()
internal/prompter/huh_prompter_test.go:77
↓ 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:706
↓ 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
↓ 3 callers
Method
AccessiblePrompterEnabled
()
pkg/iostreams/iostreams.go:478
↓ 3 callers
Method
ActiveUser
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 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:48
↓ 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:365
↓ 3 callers
Method
Ask
(qs []*survey.Question, response interface{})
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:74
↓ 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
BranchDeleteRemote
(client *Client, repo ghrepo.Interface, branch string)
api/queries_pr.go:847
↓ 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:100
↓ 3 callers
Method
CheckoutNewBranch
(ctx context.Context, remoteName, branch string)
git/client.go:631
↓ 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:45
↓ 3 callers
Method
Commits
(Query)
pkg/search/searcher.go:32
↓ 3 callers
Method
Config
(ctx context.Context, name string)
git/client.go:266
↓ 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
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
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:134
↓ 3 callers
Method
CurrentVersion
()
pkg/extensions/extension.go:22
↓ 3 callers
Function
DefaultOptionsWithCacheSetting
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:21
↓ 3 callers
Method
Delete
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/delete/delete.go:28
↓ 3 callers
Method
DeleteLocalBranch
(ctx context.Context, branch string)
git/client.go:605
↓ 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:182
↓ 3 callers
Method
Disable
()
internal/gh/ghtelemetry/telemetry.go:14
↓ 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
← previous
next →
601–700 of 5,909, ranked by callers