MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 3 callersFunctionnewExtList
(opts ExtBrowseOpts, ui uiRegistry, extEntries []extEntry)
pkg/cmd/extension/browse/browse.go:110
↓ 3 callersFunctionnewProjectFromQueryWithItemsQuery
(source projectQueryWithQueryableItems)
pkg/cmd/project/shared/queries/queries.go:245
↓ 3 callersFunctionnewTerminal
(t *testing.T)
pkg/surveyext/editor_test.go:197
↓ 3 callersFunctionnormalizeANSI
strips some ANSI escape sequences that we do not want tests to be concerned with
pkg/surveyext/editor_test.go:280
↓ 3 callersFunctionnormalizeExtension
normalizeExtension makes sure that the provided extension name is prefixed with "gh-".
pkg/cmd/extension/manager.go:885
↓ 3 callersFunctionnormalizeReference
(reference string, pathSeparator rune)
pkg/cmd/attestation/artifact/artifact.go:30
↓ 3 callersFunctionoutputLines
(output []byte)
git/client.go:918
↓ 3 callersFunctionpatchVariable
(client *api.Client, host string, path safeurl.SafeURL, payload interface{})
pkg/cmd/variable/set/http.go:134
↓ 3 callersFunctionpostVariable
(client *api.Client, host string, path safeurl.SafeURL, payload interface{})
pkg/cmd/variable/set/http.go:87
↓ 3 callersFunctionprintHostHints
printHostHints prints any agent-specific post-install guidance for the hosts that were installed to. Most agents need no extra steps; this is currentl
pkg/cmd/skills/install/install.go:1228
↓ 3 callersFunctionprintPreInstallDisclaimer
printPreInstallDisclaimer prints a warning that installed skills are unverified and should be inspected before use.
pkg/cmd/skills/install/install.go:1189
↓ 3 callersFunctionprintReviewHint
printReviewHint warns the user to review installed skills and suggests preview commands. When sha is non-empty the suggested commands include @SHA so
pkg/cmd/skills/install/install.go:1198
↓ 3 callersFunctionrankByRelevance
rankByRelevance sorts results by multi-signal score, highest first.
pkg/cmd/skills/search/search.go:681
↓ 3 callersFunctionreason
reason creates a sentence fragment so that the lock reason can be used in a sentence. e.g. "resolved" -> " as RESOLVED"
pkg/cmd/issue/lock/lock.go:209
↓ 3 callersFunctionrenderRawMarkdown
renderRawMarkdown renders the given raw markdown string to the given writer. Use for complete markdown content from tool calls that need no conversion
pkg/cmd/agent-task/shared/log.go:298
↓ 3 callersFunctionresolveBody
resolveBody determines the comment body from flags or interactive input. defaultBody is used as the initial content in the editor (e.g., existing comm
pkg/cmd/discussion/comment/comment.go:283
↓ 3 callersFunctionresolveCommentID
resolveCommentID returns the comment node ID, resolving it from the database ID via the API if the arg was a comment URL.
pkg/cmd/discussion/comment/comment.go:270
↓ 3 callersFunctionresolveEnterpriseVersion
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:570
↓ 3 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/status/status_test.go:20
↓ 3 callersFunctionrunCommandWithRootDirOverridden
(rt http.RoundTripper, isTTY bool, cli string, rootDir string, pm *prompter.PrompterMock)
pkg/cmd/issue/create/create_test.go:979
↓ 3 callersFunctionrunDeleteField
(config deleteFieldConfig)
pkg/cmd/project/field-delete/field_delete.go:64
↓ 3 callersFunctionrunInspect
(opts *Options)
pkg/cmd/attestation/inspect/inspect.go:160
↓ 3 callersFunctionrunLink
(config linkConfig)
pkg/cmd/project/link/link.go:155
↓ 3 callersFunctionrunUnlink
(config unlinkConfig)
pkg/cmd/project/unlink/unlink.go:155
↓ 3 callersFunctionscanInstalledSkills
scanInstalledSkills reads all SKILL.md files in a skills directory and extracts GitHub metadata from their frontmatter. It handles both flat layouts (
pkg/cmd/skills/update/update.go:554
↓ 3 callersFunctionsearchIssues
(client *api.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:119
↓ 3 callersFunctionselectSkillsWithSelector
(opts *InstallOptions, skills []discovery.Skill, canPrompt bool, sel skillSelector)
pkg/cmd/skills/install/install.go:698
↓ 3 callersFunctionsetStateEntry
(stateFilePath string, t time.Time, r ReleaseInfo)
internal/update/update.go:162
↓ 3 callersFunctionsingleSelectField
singleSelectField builds a ProjectV2SingleSelectField fixture with the given id, name, and options (alternating id/name pairs are passed as a slice).
pkg/cmd/project/shared/queries/resolve_fields_test.go:22
↓ 3 callersFunctionstartPage
(w io.Writer)
pkg/cmd/api/pagination.go:210
↓ 3 callersFunctionstubBranchConfig
(branchConfig git.BranchConfig, err error)
pkg/cmd/pr/shared/finder_test.go:928
↓ 3 callersFunctionstubPushDefault
(pushDefault git.PushDefault, err error)
pkg/cmd/pr/shared/finder_test.go:946
↓ 3 callersFunctionstubPushRevision
(parsedPushRevision git.RemoteTrackingRef, err error)
pkg/cmd/pr/shared/finder_test.go:958
↓ 3 callersFunctionstubRemotePushDefault
(remotePushDefault string, err error)
pkg/cmd/pr/shared/finder_test.go:952
↓ 3 callersFunctionswapDirectoryContents
swapDirectoryContents replaces the entries inside dest with the entries inside src, preserving dest's inode. It first moves every existing entry into
pkg/cmd/skills/update/update.go:470
↓ 3 callersFunctionsyncBranchCmds
syncBranchCmds syncs a branch to ref: a hard reset when force is set, otherwise a fast-forward-only merge. A non-empty path runs the commands there.
pkg/cmd/pr/checkout/checkout.go:416
↓ 3 callersFunctiontab
Step helpers — each returns a single interactionStep. These send raw terminal escape sequences that bubbletea's input parser understands. Common ANSI
internal/prompter/huh_prompter_test.go:65
↓ 3 callersFunctiontestingPortsApp
()
pkg/cmd/codespace/ports_test.go:168
↓ 3 callersFunctiontextField
textField builds a ProjectV2Field (TEXT) fixture with the given id and name.
pkg/cmd/project/shared/queries/resolve_fields_test.go:12
↓ 3 callersFunctiontokenRun
(opts *TokenOptions)
pkg/cmd/auth/token/token.go:57
↓ 3 callersMethodupgradeExtensions
(exts []*Extension, force bool)
pkg/cmd/extension/manager.go:487
↓ 3 callersFunctionwriteError
writeError writes Twirp errors in the response and triggers hooks.
internal/barista/observability/telemetry.twirp.go:596
↓ 3 callersFunctionwriteFile
(p string, contents []byte, mode os.FileMode)
pkg/cmd/extension/manager.go:727
↓ 3 callersFunctionwriteSkill
writeSkill creates skills/<name>/SKILL.md with the given content.
pkg/cmd/skills/publish/publish_test.go:1595
↓ 2 callersMethodAccessibleColorsEnabled
()
pkg/iostreams/iostreams.go:470
↓ 2 callersMethodAccessiblePrompter
AccessiblePrompter returns the configured accessible_prompter setting, optionally scoped by host.
internal/gh/gh.go:41
↓ 2 callersMethodActionsFeatures
()
internal/featuredetection/feature_detection.go:23
↓ 2 callersMethodActiveToken
ActiveToken will retrieve the active auth token for the given hostname, searching environment variables, plain text config, and lastly encrypted stora
internal/config/config.go:237
↓ 2 callersMethodAdd
(int)
pkg/cmd/extension/browse/browse.go:99
↓ 2 callersFunctionAddAuthTokenHeader
AddAuthTokenHeader adds an authentication token header for the host specified by the request.
api/http_client.go:152
↓ 2 callersFunctionAddJSONFlagsWithoutShorthand
(cmd *cobra.Command, exportTarget *Exporter, fields []string)
pkg/cmdutil/json_flags.go:35
↓ 2 callersMethodAlgorithm
Algorithm returns the artifact's algorithm
pkg/cmd/attestation/artifact/artifact.go:82
↓ 2 callersMethodAreFlagsValid
AreFlagsValid checks that the provided flag combination is valid and returns an error otherwise
pkg/cmd/attestation/verify/options.go:64
↓ 2 callersMethodAreFlagsValid
()
pkg/cmd/attestation/download/options.go:30
↓ 2 callersFunctionAssetsFromArgs
(args []string)
pkg/cmd/release/shared/upload.go:40
↓ 2 callersFunctionAuthFlow
AuthFlow initiates an OAuth device or web application flow to acquire a token. The provided HTTP client should be a plain client that does not set aut
internal/authflow/flow.go:30
↓ 2 callersMethodAuthToken
()
pkg/cmd/auth/shared/prompt.go:7
↓ 2 callersFunctionAuthTokenRefreshable
AuthTokenRefreshable reports whether the token is stored by gh and can be renewed with `gh auth refresh`.
pkg/cmd/auth/shared/writeable.go:11
↓ 2 callersMethodBaseRepo
()
pkg/cmd/pr/shared/find_refs_resolution.go:112
↓ 2 callersFunctionBinaryResponse
(body []byte)
pkg/httpmock/stub.go:130
↓ 2 callersMethodBlur
()
internal/prompter/multi_select_with_search.go:389
↓ 2 callersMethodBody
Body is the body of the project item.
pkg/cmd/project/shared/queries/queries.go:622
↓ 2 callersMethodBrowse
(string)
pkg/cmd/extension/browse/browse.go:43
↓ 2 callersMethodBrowseURL
()
pkg/cmd/codespace/ports.go:133
↓ 2 callersFunctionBuildMockResult
(b *bundle.Bundle, buildConfigURI, buildSignerURI, sourceRepoOwnerURI, sourceRepoURI, issuer string)
pkg/cmd/attestation/verification/mock_verifier.go:70
↓ 2 callersFunctionBuildSigstoreJsMockResult
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:95
↓ 2 callersMethodCachedClient
(ttl time.Duration)
pkg/cmd/status/status.go:205
↓ 2 callersFunctionCalculateDigestWithAlgorithm
(r io.Reader, alg string)
pkg/cmd/attestation/artifact/digest/digest.go:37
↓ 2 callersFunctionCapiClientFunc
(f *cmdutil.Factory)
pkg/cmd/agent-task/shared/capi.go:21
↓ 2 callersMethodCheck
Check returns an error if a file already exists at destination
pkg/cmd/release/download/download.go:387
↓ 2 callersFunctionCheckAuth
(cfg gh.Config)
pkg/cmdutil/auth_check.go:29
↓ 2 callersFunctionCheckForExtensionUpdate
CheckForExtensionUpdate checks whether an update exists for a specific extension based on extension type and recency of last check within past 24 hour
internal/update/update.go:51
↓ 2 callersFunctionCheckForUpdate
CheckForUpdate checks whether an update exists for the GitHub CLI based on recency of last check within past 24 hours.
internal/update/update.go:92
↓ 2 callersMethodClose
()
internal/codespaces/portforwarder/port_forwarder.go:51
↓ 2 callersFunctionColorForProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:14
↓ 2 callersMethodColorLabels
()
pkg/iostreams/iostreams.go:121
↓ 2 callersFunctionConcurrentUpload
(httpClient httpDoer, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload)
pkg/cmd/release/shared/upload.go:115
↓ 2 callersFunctionConfigDir
()
internal/config/config.go:720
↓ 2 callersMethodConfigureOurs
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
pkg/cmd/auth/shared/gitcredentials/helper_config.go:22
↓ 2 callersMethodConfiguredHelper
(hostname string)
pkg/cmd/auth/shared/git_credential.go:12
↓ 2 callersMethodConfirm
(message string)
pkg/cmd/codespace/delete.go:36
↓ 2 callersMethodConfirm
Confirm prompts the user to confirm an action.
internal/prompter/prompter.go:38
↓ 2 callersMethodConnect
Connect connects the client to the tunnel.
internal/codespaces/connection/connection.go:89
↓ 2 callersFunctionContent
Content returns the full license report, including the main report and all third-party licenses.
internal/licenses/licenses.go:13
↓ 2 callersMethodCreateCodespace
(ctx context.Context, params *api.CreateCodespaceParams)
pkg/cmd/codespace/common.go:77
↓ 2 callersMethodCreateJob
CreateJob queues a new job using the v1 Jobs API. It may or may not return Pull Request information. If Pull Request information is required following
pkg/cmd/agent-task/capi/job.go:62
↓ 2 callersFunctionCreateRepoTransformToV4
(apiClient *Client, hostname string, method string, path safeurl.SafeURL, body io.Reader)
api/queries_repo.go:1616
↓ 2 callersMethodCreated
()
pkg/cmd/pr/shared/comments.go:20
↓ 2 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:123
↓ 2 callersMethodCurrentUsername
()
pkg/cmd/status/status.go:218
↓ 2 callersMethodCurrentVersion
()
pkg/cmd/extension/extension.go:88
↓ 2 callersMethodCyanBold
(t string)
pkg/iostreams/color.go:174
↓ 2 callersMethodDataType
DataType is the data type of the project field, e.g. TEXT, NUMBER, DATE, SINGLE_SELECT, or ITERATION. It returns an empty string for unknown field typ
pkg/cmd/project/shared/queries/queries.go:1009
↓ 2 callersFunctionDeferredUpdateIssue
DeferredUpdateIssue runs issue mutations described by opts in parallel and returns any failures as a single joined error so a single failure does not
api/queries_issue.go:647
↓ 2 callersMethodDeleteComment
DeleteComment deletes a discussion comment or reply.
pkg/cmd/discussion/client/client.go:52
↓ 2 callersMethodDeleteLocalTag
(ctx context.Context, tag string)
git/client.go:592
↓ 2 callersMethodDirty
()
pkg/cmd/pr/shared/editable.go:79
↓ 2 callersFunctionDiscoverLocalSkills
DiscoverLocalSkills finds non-hidden-dir skills in a local directory using the same conventions as remote discovery. Hidden-dir skills are excluded; u
internal/skills/discovery/discovery.go:950
↓ 2 callersFunctionDiscoverSkillByPath
DiscoverSkillByPath looks up a single skill by its exact path in the repository.
internal/skills/discovery/discovery.go:710
↓ 2 callersFunctionDiscoverSkillFiles
DiscoverSkillFiles returns all file paths belonging to a skill directory by fetching the skill's subtree directly using its tree SHA.
internal/skills/discovery/discovery.go:813
← previousnext →901–1,000 of 5,909, ranked by callers