Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
↓ 1 callers
Function
getPerm
(m os.FileMode)
internal/zip/zip.go:62
↓ 1 callers
Function
getPortPairs
getPortPairs parses a list of strings of form "%d:%d" into pairs of (remote, local) numbers.
pkg/cmd/codespace/ports.go:373
↓ 1 callers
Function
getPostCreateOutput
(ctx context.Context, tunnelPort int, user string)
internal/codespaces/states.go:110
↓ 1 callers
Function
getReadmePath
(repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:65
↓ 1 callers
Function
getRepoIds
(client *api.Client, host, owner string, repositoryNames []string)
pkg/cmd/variable/set/set.go:287
↓ 1 callers
Function
getRepoPubKey
(client *api.Client, repo ghrepo.Interface, app shared.App)
pkg/cmd/secret/set/http.go:59
↓ 1 callers
Function
getRepoSecrets
(client *http.Client, repo ghrepo.Interface, app shared.App)
pkg/cmd/secret/list/list.go:310
↓ 1 callers
Function
getRepoSuggestions
(ctx context.Context, apiClient apiClient, partialSearch string)
pkg/cmd/codespace/create.go:580
↓ 1 callers
Function
getRepoVariables
(client *http.Client, repo ghrepo.Interface)
pkg/cmd/variable/list/list.go:196
↓ 1 callers
Function
getRunLog
(cache RunLogCache, httpClient *http.Client, repo ghrepo.Interface, run *shared.Run, attempt uint64)
pkg/cmd/run/view/view.go:511
↓ 1 callers
Function
getSortedKeys
(m map[string]string)
pkg/cmd/alias/imports/import.go:184
↓ 1 callers
Function
getToken
(c *config.Config, hostname string)
internal/config/migration/multi_account.go:147
↓ 1 callers
Function
getTokenReadOnly
getTokenReadOnly resolves the stored active token for the hostname and optional username without contacting the token endpoint. It still surfaces a re
pkg/cmd/auth/token/token.go:182
↓ 1 callers
Function
getTokenWithRefresh
getTokenWithRefresh resolves the active token for the hostname and optional username and refreshes it when necessary. Refresh is best effort: a failed
pkg/cmd/auth/token/token.go:193
↓ 1 callers
Function
getTopics
(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface)
pkg/cmd/repo/edit/edit.go:567
↓ 1 callers
Method
getTrustDomain
(u safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:299
↓ 1 callers
Function
getTunnelClient
getTunnelClient creates a tunnel client for the given tunnel. The tunnel client is used to connect to the tunnel and allows for ports to be forwarded
internal/codespaces/connection/connection.go:152
↓ 1 callers
Function
getTunnelManager
getTunnelManager creates a tunnel manager for the given codespace. The tunnel manager is used to get the tunnel hosted in the codespace that we want t
internal/codespaces/connection/connection.go:131
↓ 1 callers
Function
getUserPublicKey
(client *api.Client, host string)
pkg/cmd/secret/set/http.go:51
↓ 1 callers
Function
getUserSecrets
(client *http.Client, host string, showSelectedRepoInfo bool)
pkg/cmd/secret/list/list.go:276
↓ 1 callers
Function
getUsername
(c *config.Config, hostname, token string, transport http.RoundTripper)
internal/config/migration/multi_account.go:170
↓ 1 callers
Function
ghId
(s *string)
pkg/cmd/pr/shared/editable_http.go:220
↓ 1 callers
Function
ghString
(s *string)
pkg/cmd/pr/shared/editable_http.go:232
↓ 1 callers
Function
ghVersion
(path string, env []string, dir string)
script/ghmock/run.go:582
↓ 1 callers
Function
gitBuildDirectory
(runID string, index int)
script/ghmock/gitcmd.go:363
↓ 1 callers
Method
gitWorld
(opts gitOptions)
script/ghmock/gitcmd.go:204
↓ 1 callers
Method
goBinScaffolding
(name string)
pkg/cmd/extension/manager.go:671
↓ 1 callers
Function
gqlEntry
(run, operation, query, vars string)
script/ghmock/scaffold_test.go:73
↓ 1 callers
Function
graphQLBody
(t *testing.T, query string, operation ...string)
script/ghmock/server_test.go:56
↓ 1 callers
Function
graphQLBodyWithVariables
(t *testing.T, query, variables string)
script/ghmock/server_test.go:67
↓ 1 callers
Function
graphQLFieldNames
(def *ast.Definition)
script/ghmock/schemacmd.go:249
↓ 1 callers
Method
graphQLSchema
graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or it couldn't be loaded.
script/ghmock/server.go:81
↓ 1 callers
Function
graphQLTypeNames
(schema *ast.Schema)
script/ghmock/schemacmd.go:239
↓ 1 callers
Function
handleChannels
(ctx context.Context, server *relayServer, chans <-chan ssh.NewChannel)
internal/codespaces/connection/tunnels_api_server_mock.go:387
↓ 1 callers
Function
handlePush
(opts CreateOptions, ctx CreateContext)
pkg/cmd/pr/create/create.go:1243
↓ 1 callers
Function
handleRequestError
handleRequestError converts a request error into an HTTPError or GraphQLError, first adding any endpoint scopes to the error's headers so that the sco
api/client.go:307
↓ 1 callers
Function
handleRequests
(ctx context.Context, reqs <-chan tunnelssh.SSHRequest)
internal/codespaces/connection/tunnels_api_server_mock.go:409
↓ 1 callers
Function
handleUnixDomainSocket
(socketPath string)
pkg/cmd/send-telemetry/send_telemetry.go:122
↓ 1 callers
Function
has
(needle string, haystack []string)
pkg/cmd/auth/setupgit/setupgit.go:122
↓ 1 callers
Method
hasAPI
()
pkg/cmd/pr/shared/templates.go:156
↓ 1 callers
Function
hasAlternateScreenBuffer
(_ bool)
pkg/iostreams/console.go:7
↓ 1 callers
Function
hasCommits
check if local repository has committed changes
pkg/cmd/repo/create/create.go:754
↓ 1 callers
Function
hasInstallMetadata
(meta map[string]any)
pkg/cmd/skills/list/list.go:441
↓ 1 callers
Function
hasPluginsAncestor
hasPluginsAncestor reports whether any path component is "plugins".
internal/skills/discovery/discovery.go:1139
↓ 1 callers
Function
hasSavedPair
(hostname, accessToken, refreshToken, source string)
pkg/cmd/auth/logout/logout_test.go:1338
↓ 1 callers
Function
hasSecurityEdits
(edits EditRepositoryInput)
pkg/cmd/repo/edit/edit.go:655
↓ 1 callers
Method
headerView
()
pkg/cmd/extension/browse/model.go:681
↓ 1 callers
Method
heartbeat
Periodically check whether there is a reason to keep the connection alive, and if so, notify the codespace to do so
internal/codespaces/rpc/invoker.go:277
↓ 1 callers
Function
helpTopicHelpFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:354
↓ 1 callers
Function
helpTopicUsageFunc
(w io.Writer, command *cobra.Command)
pkg/cmd/root/help_topic.go:362
↓ 1 callers
Method
helpView
()
pkg/cmd/extension/browse/model.go:704
↓ 1 callers
Function
hiddenDirSkillTreeJSON
hiddenDirSkillTreeJSON returns tree entries for a hidden-dir skill under .claude/skills/.
pkg/cmd/skills/install/install_test.go:315
↓ 1 callers
Function
hideScratch
hideScratch replaces the run's scratch folder with <scratch> in gh's output. Each binary gets its own folder, so paths such as the hosts.yml that gh a
script/ghmock/run.go:505
↓ 1 callers
Function
humanize
Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
pkg/cmd/pr/create/create.go:1375
↓ 1 callers
Method
inMergeQueue
Check if this pull request is in a merge queue
pkg/cmd/pr/merge/merge.go:214
↓ 1 callers
Function
initDefaultTitleBody
(ctx CreateContext, state *shared.IssueMetadataState, useFirstCommit bool, addBody bool)
pkg/cmd/pr/create/create.go:706
↓ 1 callers
Function
initSyncTestRepo
initSyncTestRepo creates a fresh git repository on branch "trunk" with an isolated config and a configured identity, returning its directory.
pkg/cmd/repo/sync/sync_test.go:111
↓ 1 callers
Function
inlineDestination
inlineDestination finds the destination written beside a reference, as the "./f.png" of [text](./f.png).
internal/attachments/references.go:601
↓ 1 callers
Function
inlineRanges
inlineRanges locates the source of an inline link or image. goldmark reports where every inline node starts, so the only thing left to find is where i
internal/attachments/references.go:517
↓ 1 callers
Function
inside
(path: string, root: string)
evals/src/core/io.ts:35
↓ 1 callers
Method
installGit
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:413
↓ 1 callers
Function
installLocalSkill
(sourceRoot string, skill discovery.Skill, baseDir string)
internal/skills/installer/installer.go:181
↓ 1 callers
Function
interactiveChoice
(p iprompter, r *api.Repository)
pkg/cmd/repo/edit/edit.go:362
↓ 1 callers
Function
interactiveGitIgnore
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:852
↓ 1 callers
Function
interactiveLicense
(client *http.Client, hostname string, prompter iprompter)
pkg/cmd/repo/create/create.go:871
↓ 1 callers
Function
interactiveRepoEdit
(opts *EditOptions, r *api.Repository)
pkg/cmd/repo/edit/edit.go:392
↓ 1 callers
Function
interactiveRepoNameAndOwner
(client *http.Client, hostname string, prompter iprompter, defaultName string)
pkg/cmd/repo/create/create.go:927
↓ 1 callers
Function
interactiveRepoTemplate
(client *http.Client, hostname, owner string, prompter iprompter)
pkg/cmd/repo/create/create.go:831
↓ 1 callers
Method
introspect
introspect answers __type and __schema as GitHub would. gh asks which fields a type has to decide which queries to send. For example, gh issue develop
script/ghmock/introspection.go:22
↓ 1 callers
Function
isAccessDenied
(err error)
script/build.go:213
↓ 1 callers
Function
isAdditionLine
(l []byte)
pkg/cmd/pr/diff/diff.go:311
↓ 1 callers
Function
isBlank
(v any)
api/queries_pr.go:756
↓ 1 callers
Function
isEpipeError
(err error)
pkg/iostreams/epipe_other.go:10
↓ 1 callers
Function
isExtensionCommand
isExtensionCommand returns true if args resolve to an extension command.
internal/ghcmd/cmd.go:279
↓ 1 callers
Function
isFilesystemPath
(p string)
git/client.go:974
↓ 1 callers
Function
isGpgKeyArmored
(keyBytes []byte)
pkg/cmd/gpg-key/add/http.go:66
↓ 1 callers
Function
isHeaderLine
(l []byte)
pkg/cmd/pr/diff/diff.go:301
↓ 1 callers
Function
isHostEnv
(src string)
pkg/cmd/factory/remote_resolver.go:98
↓ 1 callers
Function
isImmediatelyMergeable
(status string)
pkg/cmd/pr/merge/merge.go:826
↓ 1 callers
Function
isIncluded
(value string, opts []string)
pkg/cmd/repo/edit/edit.go:636
↓ 1 callers
Function
isLetterOrNumber
(r rune)
pkg/cmd/issue/artifact/create/create.go:432
↓ 1 callers
Method
isLink
isLink reports whether the source creates a link: a URL, or a .url file.
pkg/cmd/issue/artifact/create/create.go:79
↓ 1 callers
Function
isMap
(v any)
script/ghmock/restscaffold.go:431
↓ 1 callers
Function
isMarkdownFile
(filename string)
pkg/cmd/repo/view/view.go:218
↓ 1 callers
Function
isMarkdownFile
(filePath string)
pkg/cmd/skills/preview/preview.go:411
↓ 1 callers
Function
isMockHost
isMockHost reports whether hostname is github.localhost or one of its subdomains.
script/ghmock/request.go:40
↓ 1 callers
Function
isNewRelease
isNewRelease checks if there are new commits since the latest release.
pkg/cmd/release/create/http.go:238
↓ 1 callers
Function
isPossibleProtocol
(u string)
git/url.go:21
↓ 1 callers
Function
isPreviewNotEnabled
(httpErr api.HTTPError)
pkg/cmd/event/client/client.go:266
↓ 1 callers
Function
isProvidedRepoValid
(repo string)
pkg/cmd/attestation/verify/options.go:100
↓ 1 callers
Function
isRateLimitError
isRateLimitError checks whether err is a GitHub API rate-limit response. Per GitHub docs, a rate limit is indicated by: - HTTP 429 (always a rate limi
pkg/cmd/skills/search/search.go:706
↓ 1 callers
Function
isRecentRelease
(publishedAt time.Time)
internal/ghcmd/cmd.go:370
↓ 1 callers
Function
isRemoteDestination
isRemoteDestination reports whether a destination addresses somewhere other than the filesystem, so that an attached file is never confused with a URI
internal/attachments/references.go:410
↓ 1 callers
Function
isRemovalLine
(l []byte)
pkg/cmd/pr/diff/diff.go:315
↓ 1 callers
Method
isSubpathOf
(dir Absolute)
internal/safepaths/absolute.go:59
↓ 1 callers
Function
isSymlink
(m os.FileMode)
pkg/cmd/extension/manager.go:724
↓ 1 callers
Function
isTelemetryDisabled
(cmd *cobra.Command)
pkg/cmdutil/telemetry.go:78
↓ 1 callers
Function
isURL
(s string)
pkg/cmd/repo/fork/fork.go:405
↓ 1 callers
Function
isUnderHomebrew
Check whether the gh binary was found under the Homebrew prefix
internal/ghcmd/cmd.go:375
↓ 1 callers
Function
isUsernameValid
(username string)
internal/codespaces/rpc/invoker.go:313
← previous
next →
3,301–3,400 of 7,572, ranked by callers