MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,846 in github.com/cli/cli

↓ 6 callersFunctionmin
(a, b int)
pkg/cmd/pr/list/http.go:132
↓ 6 callersFunctionnewIOStreams
(cfg gh.Config)
internal/ghcmd/cmd.go:349
↓ 6 callersFunctionrunCloneCommand
(httpClient *http.Client, cli string)
pkg/cmd/repo/clone/clone_test.go:114
↓ 6 callersFunctionrunClose
(config closeConfig)
pkg/cmd/project/close/close.go:85
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/list/list_test.go:76
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, branch string, isTTY bool, cli string)
pkg/cmd/pr/view/view_test.go:170
↓ 6 callersFunctionrunEdit
(config editConfig)
pkg/cmd/project/edit/edit.go:93
↓ 6 callersMethodselectedKeys
()
internal/prompter/multi_select_with_search.go:187
↓ 6 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/secret/set/set.go:203
↓ 6 callersFunctionstubDeviceID
(id string)
internal/telemetry/telemetry_test.go:26
↓ 6 callersFunctionstubDiscoverTree
stubDiscoverTree registers the single recursive-tree call used by DiscoverSkills.
pkg/cmd/skills/install/install_test.go:230
↓ 6 callersFunctionstubInstallFiles
stubInstallFiles registers subtree + blob stubs for installer.Install (one skill).
pkg/cmd/skills/install/install_test.go:238
↓ 6 callersFunctionstubLocalExtension
(tempDir, path string)
pkg/cmd/extension/manager_test.go:1469
↓ 6 callersFunctionstubResolveVersion
--- HTTP stub helpers --- stubResolveVersion registers API stubs for latest release + tag resolution.
pkg/cmd/skills/install/install_test.go:218
↓ 6 callersFunctiontestFullConfig
()
internal/config/migrate_test.go:245
↓ 5 callersMethodBaseRef
BaseRef returns the base branch name.
pkg/cmd/pr/create/create.go:90
↓ 5 callersMethodBlue
(t string)
pkg/iostreams/color.go:181
↓ 5 callersMethodCacheDir
CacheDir returns the directory where the cacheable artifacts can be persisted.
internal/gh/gh.go:70
↓ 5 callersMethodCheckoutBranch
(branch string)
pkg/cmd/extension/git.go:10
↓ 5 callersFunctionCommentableRun
(opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:108
↓ 5 callersFunctionContainsEscapeSequence
ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), which can manipulate a terminal when printed.
pkg/iostreams/content.go:18
↓ 5 callersMethodCount
()
api/reaction_groups.go:42
↓ 5 callersMethodCreate
(name string, tmplType ExtTemplateType)
pkg/extensions/extension.go:39
↓ 5 callersFunctionDiscussionClientFunc
DiscussionClientFunc returns a factory function that creates a DiscussionClient from the given Factory. The returned function is intended to be stored
pkg/cmd/discussion/shared/client.go:13
↓ 5 callersMethodEnableDryRunMode
()
pkg/extensions/extension.go:40
↓ 5 callersMethodError
()
internal/barista/observability/telemetry.twirp.go:840
↓ 5 callersFunctionFetchLatestRelease
FetchLatestRelease finds the latest published release for a repository.
pkg/cmd/release/shared/fetch.go:237
↓ 5 callersFunctionFindByID
FindByID returns the agent host with the given ID, or an error if not found.
internal/skills/registry/registry.go:350
↓ 5 callersFunctionFormatSlice
FormatSlice concatenates elements of the given string slice into a well-formatted, possibly multiline, string with specific line length limit. Element
internal/text/text.go:97
↓ 5 callersMethodForwardPortToListener
ForwardPortToListener implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:41
↓ 5 callersMethodGetByDigest
(params FetchParams)
pkg/cmd/attestation/api/client.go:67
↓ 5 callersMethodGetComment
GetComment fetches a single discussion comment by node ID.
pkg/cmd/discussion/client/client.go:54
↓ 5 callersFunctionGetVariableEntity
(orgName, envName string)
pkg/cmd/variable/shared/shared.go:52
↓ 5 callersFunctionGistIDFromURL
(gistURL string)
pkg/cmd/gist/shared/shared.go:84
↓ 5 callersFunctionGitHubReleaseBundle
(t *testing.T)
pkg/cmd/attestation/test/data/data.go:26
↓ 5 callersMethodHasEnvToken
HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
internal/gh/gh.go:114
↓ 5 callersMethodHeadLabel
()
api/queries_pr.go:302
↓ 5 callersFunctionHostnameValidator
(hostname string)
internal/ghinstance/host.go:36
↓ 5 callersFunctionIndent
(s, indent string)
internal/text/text.go:19
↓ 5 callersMethodInstallName
InstallName returns the relative path used for the install directory. For namespaced skills it returns "namespace/name" (creating a nested directory),
internal/skills/discovery/discovery.go:81
↓ 5 callersFunctionIsBinaryContents
(contents []byte)
pkg/cmd/gist/shared/shared.go:217
↓ 5 callersMethodIsPinned
()
pkg/cmd/extension/extension.go:150
↓ 5 callersMethodIsTTY
IsTTY gets whether the TablePrinter will render to a terminal.
internal/tableprinter/table_printer.go:20
↓ 5 callersMethodIssueFeatures
()
internal/featuredetection/feature_detection.go:16
↓ 5 callersFunctionIssueRepoInfo
IssueRepoInfo fetches only the repository fields needed for issue operations such as issue creation and transfer, avoiding fields like defaultBranchRe
api/queries_repo.go:321
↓ 5 callersMethodListCategories
ListCategories returns the discussion categories available in a repository.
pkg/cmd/discussion/client/client.go:37
↓ 5 callersMethodListCodespaces
(ctx context.Context, opts api.ListCodespacesOptions)
pkg/cmd/codespace/common.go:73
↓ 5 callersFunctionListenTCP
ListenTCP starts a localhost tcp listener on 127.0.0.1 (unless allInterfaces is true) and returns the listener and bound port
internal/codespaces/codespaces.go:132
↓ 5 callersMethodMultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/pr/shared/survey.go:43
↓ 5 callersMethodMutate
TODO: un-export this since it couples the caller heavily to api.GraphQLClient
pkg/cmd/project/shared/queries/queries.go:102
↓ 5 callersFunctionNew
(editorCmd string, io *iostreams.IOStreams)
internal/prompter/prompter.go:55
↓ 5 callersFunctionNewAssignableUser
(id, login, name string)
api/queries_repo.go:1176
↓ 5 callersFunctionNewDetector
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:159
↓ 5 callersFunctionNewMockSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:53
↓ 5 callersFunctionNewQualifiedHeadRefWithoutOwner
(branchName string)
pkg/cmd/pr/shared/find_refs_resolution.go:39
↓ 5 callersFunctionNewRemote
(name string, u string)
git/objects.go:42
↓ 5 callersFunctionNewService
NewService creates a new telemetry service with the provided flush function and options.
internal/telemetry/telemetry.go:213
↓ 5 callersFunctionParseQualifiedHeadRef
ParseQualifiedHeadRef takes strings of the form <owner>:<branch> or <branch> and returns a QualifiedHeadRef. If the form <owner>:<branch> is used, the
pkg/cmd/pr/shared/find_refs_resolution.go:55
↓ 5 callersFunctionResolveGitRoot
ResolveGitRoot returns the git repository root using the provided client, falling back to the current working directory on error.
internal/skills/installer/installer.go:313
↓ 5 callersFunctionSSOURL
SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader to extract the value of the "X-GitHub-SSO" re
pkg/cmd/factory/default.go:293
↓ 5 callersFunctionScopesResponder
ScopesResponder returns a response with a 200 status code and the given OAuth scopes.
pkg/httpmock/stub.go:251
↓ 5 callersMethodSearchFeatures
()
internal/featuredetection/feature_detection.go:21
↓ 5 callersFunctionSelectRun
SelectRun prompts the user to select a run from a list of runs by using the recommended prompter interface
pkg/cmd/run/shared/shared.go:541
↓ 5 callersMethodSetHosts
SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.
internal/gh/gh.go:165
↓ 5 callersMethodSetRemoteResolution
(ctx context.Context, name, resolution string)
git/client.go:208
↓ 5 callersMethodSetup
(hostname, username, authToken string)
pkg/cmd/auth/shared/git_credential.go:80
↓ 5 callersFunctionShortRef
ShortRef strips the "refs/heads/" or "refs/tags/" prefix from a fully qualified ref, returning the short name. If the ref is not fully qualified it is
internal/skills/discovery/discovery.go:138
↓ 5 callersFunctionSigstoreBundle
SigstoreBundle returns a test sigstore-go bundle.Bundle
pkg/cmd/attestation/test/data/data.go:17
↓ 5 callersMethodSize
()
pkg/iostreams/iostreams.go:48
↓ 5 callersMethodStandardSearchString
String returns the string representation of the query which can be used with the legacy search backend, which is used in global search GUI (i.e. githu
pkg/search/query.go:119
↓ 5 callersMethodStartSSHServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:47
↓ 5 callersFunctionStringSliceEnumFlag
(cmd *cobra.Command, p *[]string, name, shorthand string, defaultValues, options []string, usage string)
pkg/cmdutil/flags.go:38
↓ 5 callersMethodTokenForUser
TokenForUser retrieves the authentication token and its source for a specified user and hostname.
internal/gh/gh.go:154
↓ 5 callersMethodUnqualifiedHeadRef
UnqualifiedHeadRef returns a head ref in the form of the branch name only.
pkg/cmd/pr/create/create.go:88
↓ 5 callersMethodUnwrap
()
pkg/cmd/pr/shared/finder.go:620
↓ 5 callersMethodUpdate
Update updates a discussion. The returned discussion may be non-nil even when err is non-nil, indicating a secondary mutation failure (e.g., labels).
pkg/cmd/discussion/client/client.go:45
↓ 5 callersMethodUpdateAvailable
()
pkg/cmd/extension/extension.go:214
↓ 5 callersMethodViewerCanPush
ViewerCanPush is true when the requesting user has push access
api/queries_repo.go:267
↓ 5 callersFunctiondecodeJSONBody
(req *http.Request, dest interface{})
pkg/httpmock/stub.go:116
↓ 5 callersFunctiondedent
(s string)
pkg/cmd/root/help.go:289
↓ 5 callersFunctioneditRun
(opts *EditOptions)
pkg/cmd/issue/edit/edit.go:250
↓ 5 callersMethodgetBundle
(url safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:237
↓ 5 callersFunctiongetSecrets
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/secret/list/list.go:318
↓ 5 callersMethodhostname
()
pkg/cmd/status/status.go:201
↓ 5 callersFunctionissueResponseAllIssues2Fields
issueResponseAllIssues2Fields returns a GraphQL response for an issue with all Issues 2.0 fields populated.
pkg/cmd/issue/view/view_test.go:648
↓ 5 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/repo/list/list.go:119
↓ 5 callersFunctionmakeTestAttestation
()
pkg/cmd/attestation/api/mock_client.go:17
↓ 5 callersFunctionmatchSkillConventions
matchSkillConventions checks if a blob path matches any known skill convention.
internal/skills/discovery/discovery.go:438
↓ 5 callersFunctionmergeRun
Run the merge command.
pkg/cmd/pr/merge/merge.go:537
↓ 5 callersFunctionremoveRun
(opts *DeleteOptions)
pkg/cmd/secret/delete/delete.go:90
↓ 5 callersMethodrevParse
(ctx context.Context, args ...string)
git/client.go:695
↓ 5 callersFunctionrunAddItem
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:84
↓ 5 callersFunctionrunCommand
(rt http.RoundTripper, pm *prompter.MockPrompter, isTTY bool, cli string)
pkg/cmd/issue/delete/delete_test.go:28
↓ 5 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/ready/ready_test.go:91
↓ 5 callersFunctionrunCopy
(config copyConfig)
pkg/cmd/project/copy/copy.go:88
↓ 5 callersFunctionrunCreate
(config createConfig)
pkg/cmd/project/create/create.go:72
↓ 5 callersFunctionrunCreateItem
(config createItemConfig)
pkg/cmd/project/item-create/item_create.go:85
↓ 5 callersFunctionrunDelete
(config deleteConfig)
pkg/cmd/project/delete/delete.go:79
↓ 5 callersFunctionrunDeleteItem
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:83
↓ 5 callersFunctionsingleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
← previousnext →401–500 of 5,846, ranked by callers