MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 10 callersFunctionNewLiveClient
(hc *http.Client, externalClient *http.Client, host string, l *ioconfig.Handler)
pkg/cmd/attestation/api/client.go:78
↓ 10 callersMethodRaw
Raw returns the unsanitized content. It is the explicit, greppable opt-out for non-terminal uses (hashing, writing to disk, piping). Never pass the re
pkg/iostreams/untrusted.go:49
↓ 10 callersMethodRequestWithContext
RequestWithContext performs a REST request and returns the response for the caller to consume, rather than decoding it into a receiver as REST does. I
api/client.go:221
↓ 10 callersMethodSwitchUser
SwitchUser switches the active user for a given hostname.
internal/gh/gh.go:292
↓ 10 callersMethodTokenForUser
TokenForUser retrieves the credential for a specified user and hostname. Like ActiveToken it returns the last stored token as-is, including the curren
internal/gh/gh.go:309
↓ 10 callersMethodUpsertDimensions
(Dimensions)
internal/gh/ghtelemetry/telemetry.go:17
↓ 10 callersMethodUserAssets
UserAssets validates the files named by the attachment flag, keeping them in the order they were written. It returns nothing when the flag was not pas
internal/attachments/flags.go:50
↓ 10 callersFunctionWithRepoDir
(repoDir string)
git/command.go:91
↓ 10 callersMethodnewForm
(groups ...*huh.Group)
internal/prompter/huh_prompter.go:22
↓ 10 callersFunctionrequireNoKey
(t *testing.T, cfg *ghConfig.Config, keys []string)
internal/config/auth_config_test.go:695
↓ 9 callersMethodAddr
()
script/ghmock/tls.go:165
↓ 9 callersMethodClean
Clean cleans the file path option values
pkg/cmd/attestation/verify/options.go:50
↓ 9 callersMethodCopy
Copy writes the data from r into a file specified by name.
pkg/cmd/release/download/download.go:458
↓ 9 callersMethodExpect
Expect returns the underlying value for a [Some] variant, or panics with the provided message for a [None] variant.
pkg/option/option.go:128
↓ 9 callersMethodExpectFields
(fields []string)
pkg/cmd/pr/shared/finder.go:669
↓ 9 callersFunctionGetCodespaceConnection
GetCodespaceConnection waits until a codespace is able to be connected to and initializes a connection to it.
internal/codespaces/codespaces.go:60
↓ 9 callersFunctionHostPrefix
(hostname string)
internal/ghinstance/host.go:102
↓ 9 callersFunctionJSONErrorResponse
JSONErrorResponse is a type-safe helper to avoid confusion around the provided argument.
pkg/httpmock/stub.go:187
↓ 9 callersMethodLabel
()
pkg/cmd/codespace/ports.go:137
↓ 9 callersMethodLogout
Logout will remove user, git protocol, and auth token for the given hostname. It will remove the auth token from the encrypted storage if it exists th
internal/gh/gh.go:296
↓ 9 callersFunctionNewApp
(io *iostreams.IOStreams, exe executable, apiClient apiClient, browser browser.Browser, remotes func() (clicon
pkg/cmd/codespace/common.go:40
↓ 9 callersFunctionNewLiveSigstoreVerifier
NewLiveSigstoreVerifier creates a new LiveSigstoreVerifier struct that is used to verify artifacts and attestations against the Public Good, GitHub, o
pkg/cmd/attestation/verification/sigstore.go:61
↓ 9 callersFunctionNewTestAssets
NewTestAssets returns a UserAsset per name, resolved through --attach, which is the only way a command builds one. It writes each name into a tempora
internal/attachments/test.go:24
↓ 9 callersFunctionNewUploader
NewUploader prepares uploads against targetRepository, the numeric REST id of the repository the assets are uploaded against, and viewerPermission, th
internal/attachments/client.go:38
↓ 9 callersFunctionPullRequestGraphQL
PullRequestGraphQL constructs a GraphQL query fragment for a set of pull request fields. It will try to sanitize the fields to just those available on
api/query_builder.go:469
↓ 9 callersMethodScopesSuggestion
()
api/client.go:52
↓ 9 callersMethodSetActiveToken
The following methods are only for testing and that is a design smell we should consider fixing. SetActiveToken will override any token resolution and
internal/gh/gh.go:321
↓ 9 callersMethodSetSampleRate
(rate int)
internal/gh/ghtelemetry/telemetry.go:35
↓ 9 callersMethodSize
()
pkg/iostreams/iostreams.go:49
↓ 9 callersMethodTokenFromKeyring
TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
internal/gh/gh.go:251
↓ 9 callersMethodapi
(method: string, path: string, body?: unknown)
evals/src/core/github.ts:45
↓ 9 callersFunctioninstallRun
(opts *InstallOptions)
pkg/cmd/skills/install/install.go:255
↓ 9 callersMethodnewForm
(groups ...*huh.Group)
internal/prompter/prompter.go:90
↓ 9 callersFunctionnewTestClient
(t *testing.T, host string)
pkg/cmd/event/client/client_test.go:41
↓ 9 callersFunctionpreviewRun
(opts *PreviewOptions)
pkg/cmd/skills/preview/preview.go:128
↓ 9 callersFunctionrefreshableServiceName
(hostname string)
internal/config/refreshable.go:634
↓ 9 callersFunctionsafeClose
(closer io.Closer, err *error)
pkg/cmd/codespace/common.go:140
↓ 9 callersFunctionsingleWorktree
(branch string)
pkg/cmd/pr/merge/merge_test.go:307
↓ 9 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/repo/view/view.go:80
↓ 9 callersMethodwithFreshConfigForRefresh
withFreshConfigForRefresh runs fn, a credential-store read-modify-write (a token refresh, or a logout that must not race one), while holding both an i
internal/config/refreshable.go:96
↓ 8 callersMethodActiveUser
(string)
pkg/cmd/auth/gitcredential/helper.go:20
↓ 8 callersMethodBrowsedURL
()
internal/browser/stub.go:12
↓ 8 callersMethodCommits
(Query)
pkg/search/searcher.go:31
↓ 8 callersMethodCurrentBranch
()
pkg/cmd/repo/sync/git.go:10
↓ 8 callersMethodDigestWithAlg
DigestWithAlg returns the digest:algorithm of the artifact
pkg/cmd/attestation/artifact/artifact.go:87
↓ 8 callersMethodDo
(c *config.Config)
internal/config/migration/multi_account.go:95
↓ 8 callersMethodFindByRepo
FindByRepo returns the first Remote that points to a specific GitHub repository
context/remote.go:28
↓ 8 callersMethodFlush
()
pkg/cmd/pr/create/regexp_writer.go:54
↓ 8 callersFunctionFromFullNameWithHost
FromFullNameWithHost is like FromFullName that defaults to a specific host for values that don't explicitly include a hostname.
internal/ghrepo/repo.go:52
↓ 8 callersMethodGetOrDefault
GetOrDefault provides primitive access for fetching configuration values, optionally scoped by host.
internal/gh/gh.go:38
↓ 8 callersMethodIsStdinTTY
()
pkg/iostreams/iostreams.go:167
↓ 8 callersFunctionLogin
(opts *LoginOptions)
pkg/cmd/auth/shared/login_flow.go:81
↓ 8 callersMethodMutedf
(t string, args ...any)
pkg/iostreams/color.go:92
↓ 8 callersFunctionNew
New creates a new API client connecting to the configured endpoints with the HTTP client.
internal/codespaces/api/api.go:72
↓ 8 callersFunctionNewArtifactClient
NewArtifactClient returns an ArtifactClient that sends its requests through httpClient.
pkg/cmd/issue/artifact/client/client.go:58
↓ 8 callersFunctionNewHandler
(io *iostreams.IOStreams)
pkg/cmd/attestation/io/handler.go:17
↓ 8 callersMethodNext
Next blocks until a complete frame is read and returns it. It returns io.EOF when the stream ends; a frame that is not terminated by a blank line befo
internal/eventstream/sse.go:56
↓ 8 callersMethodOptions
()
pkg/cmd/project/shared/queries/queries.go:1030
↓ 8 callersMethodPath
Extension Name without gh-
pkg/extensions/extension.go:20
↓ 8 callersFunctionReadMarkdownBodyFile
ReadMarkdownBodyFile reads Markdown from path and returns its base directory for resolving local attachment references. Standard input has no base dir
pkg/cmdutil/file_input.go:22
↓ 8 callersMethodRecordOperations
RecordOperations replaces, rather than adds to, the completed operation counts. Pass partial results before handling an upload error so successful wor
internal/attachments/telemetry.go:41
↓ 8 callersMethodRemoveValues
(values []string)
pkg/set/string_set.go:53
↓ 8 callersFunctionRepoPartsFromNWO
RepoPartsFromNWO parses a raw "owner/repo" string and returns the owner and name unescaped. It returns an error unless nwo contains exactly one slash
internal/safeurl/safeurl.go:21
↓ 8 callersMethodSetup
Setup configures git to use the newly obtained credential for the given hostname. If no credential helper is configured for the host, gh configures i
pkg/cmd/auth/shared/git_credential.go:196
↓ 8 callersFunctionStubFetchRelease
(t *testing.T, reg *httpmock.Registry, owner, repoName, tagName, responseBody string)
pkg/cmd/release/shared/fetch.go:301
↓ 8 callersFunctionStubUploadToHost
StubUploadToHost is StubUpload plus the host the request reached. The matchers compare the path only, so the host is asserted in the responder or not
internal/attachments/test.go:74
↓ 8 callersFunctionTruncate
(maxWidth int, s string)
internal/text/text.go:38
↓ 8 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:42
↓ 8 callersFunctionactorDisplayName
actorDisplayName returns a user-friendly display name for any actor. It handles bots (e.g. Copilot → "Copilot (AI)"), users with names ("login (Name)"
api/queries_repo.go:1151
↓ 8 callersMethodcommit
(t *testing.T, message string)
git/client_test.go:1602
↓ 8 callersFunctionhandleResponse
handleResponse takes a ghAPI.HTTPError or ghAPI.GraphQLError and converts it into an HTTPError or GraphQLError respectively.
api/client.go:318
↓ 8 callersMethodloadResponses
()
script/ghmock/store.go:160
↓ 8 callersFunctionmockEmptyV2ProjectItems
mockEmptyV2ProjectItems registers GraphQL queries to report an issue is not contained on any v2 projects.
pkg/cmd/issue/view/view_test.go:613
↓ 8 callersFunctionnewProjectFromQueryWithoutItemsQuery
(source projectQueryWithoutQueryableItems)
pkg/cmd/project/shared/queries/queries.go:253
↓ 8 callersFunctionpathWithin
(root, path string)
script/ghmock/gitfixture.go:114
↓ 8 callersMethodreadLog
()
script/ghmock/store.go:211
↓ 8 callersFunctionrefreshablePath
(hostname, username string)
internal/config/refreshable.go:626
↓ 8 callersFunctionrenderMan
renderMan will generate a man page for the given command and write it to w. The header argument may be nil, however obviously w may not.
internal/docs/man.go:96
↓ 8 callersFunctionrunArchiveItem
(config archiveItemConfig)
pkg/cmd/project/item-archive/item_archive.go:91
↓ 8 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/view/view_test.go:77
↓ 8 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/close/close_test.go:62
↓ 8 callersFunctionrunCreateField
(config createFieldConfig)
pkg/cmd/project/field-create/field_create.go:95
↓ 8 callersFunctionrunView
(config viewConfig)
pkg/cmd/project/view/view.go:84
↓ 8 callersFunctionverifyAssetRun
(config *VerifyAssetConfig)
pkg/cmd/release/verify-asset/verify_asset.go:123
↓ 8 callersFunctionviewRun
(opts *ViewOptions)
pkg/cmd/issue/view/view.go:105
↓ 7 callersMethodAliases
Aliases provides persistent storage and modification of command aliases.
internal/gh/gh.go:72
↓ 7 callersFunctionAssertTestTelemetryEvents
AssertTestTelemetryEvents verifies the completed invocation event shape.
internal/attachments/test.go:46
↓ 7 callersMethodBegin
Begin records initial facts that can be updated until invocation completion.
internal/gh/ghtelemetry/telemetry.go:29
↓ 7 callersFunctionCheckHost
CheckHost refuses GitHub Enterprise Server, which doesn't support issue artifacts. Callers run it before any request, so the user gets this reason ins
pkg/cmd/issue/artifact/shared/shared.go:222
↓ 7 callersFunctionCheckIssue
CheckIssue refuses a pull request, since artifacts are only supported on issues. It makes one lookup, and callers run it before any artifact request.
pkg/cmd/issue/artifact/shared/shared.go:231
↓ 7 callersMethodCheckoutBranch
(branch string)
pkg/cmd/extension/git.go:10
↓ 7 callersMethodChecksStatus
()
api/queries_pr.go:357
↓ 7 callersFunctionClientFunc
ClientFunc returns a function that creates an ArtifactClient from the factory's HTTP client. Commands store it in their options and call it from their
pkg/cmd/issue/artifact/shared/shared.go:24
↓ 7 callersMethodConfirmDeletion
(string)
pkg/cmd/repo/delete/delete.go:21
↓ 7 callersMethodCreate
(repo ghrepo.Interface, request AutolinkCreateRequest)
pkg/cmd/repo/autolink/create/create.go:28
↓ 7 callersFunctionCreateInvoker
Connects to the internal RPC server and returns a new invoker for it
internal/codespaces/rpc/invoker.go:64
↓ 7 callersMethodDefaultHost
DefaultHost retrieves the default host.
internal/gh/gh.go:277
↓ 7 callersFunctionDelete
Delete secret from keyring.
internal/keyring/keyring.go:62
↓ 7 callersFunctionDisableTelemetry
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:64
↓ 7 callersFunctionEdit
(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer)
pkg/surveyext/editor_manual.go:18
← previousnext →301–400 of 7,487, ranked by callers