Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
5,846 in github.com/cli/cli
⨍
Functions
5,846
◇
Types & classes
1,298
↓ 6 callers
Function
min
(a, b int)
pkg/cmd/pr/list/http.go:132
↓ 6 callers
Function
newIOStreams
(cfg gh.Config)
internal/ghcmd/cmd.go:349
↓ 6 callers
Function
runCloneCommand
(httpClient *http.Client, cli string)
pkg/cmd/repo/clone/clone_test.go:114
↓ 6 callers
Function
runClose
(config closeConfig)
pkg/cmd/project/close/close.go:85
↓ 6 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/list/list_test.go:76
↓ 6 callers
Function
runCommand
(rt http.RoundTripper, branch string, isTTY bool, cli string)
pkg/cmd/pr/view/view_test.go:170
↓ 6 callers
Function
runEdit
(config editConfig)
pkg/cmd/project/edit/edit.go:93
↓ 6 callers
Method
selectedKeys
()
internal/prompter/multi_select_with_search.go:187
↓ 6 callers
Function
setRun
(opts *SetOptions)
pkg/cmd/secret/set/set.go:203
↓ 6 callers
Function
stubDeviceID
(id string)
internal/telemetry/telemetry_test.go:26
↓ 6 callers
Function
stubDiscoverTree
stubDiscoverTree registers the single recursive-tree call used by DiscoverSkills.
pkg/cmd/skills/install/install_test.go:230
↓ 6 callers
Function
stubInstallFiles
stubInstallFiles registers subtree + blob stubs for installer.Install (one skill).
pkg/cmd/skills/install/install_test.go:238
↓ 6 callers
Function
stubLocalExtension
(tempDir, path string)
pkg/cmd/extension/manager_test.go:1469
↓ 6 callers
Function
stubResolveVersion
--- HTTP stub helpers --- stubResolveVersion registers API stubs for latest release + tag resolution.
pkg/cmd/skills/install/install_test.go:218
↓ 6 callers
Function
testFullConfig
()
internal/config/migrate_test.go:245
↓ 5 callers
Method
BaseRef
BaseRef returns the base branch name.
pkg/cmd/pr/create/create.go:90
↓ 5 callers
Method
Blue
(t string)
pkg/iostreams/color.go:181
↓ 5 callers
Method
CacheDir
CacheDir returns the directory where the cacheable artifacts can be persisted.
internal/gh/gh.go:70
↓ 5 callers
Method
CheckoutBranch
(branch string)
pkg/cmd/extension/git.go:10
↓ 5 callers
Function
CommentableRun
(opts *CommentableOptions)
pkg/cmd/pr/shared/commentable.go:108
↓ 5 callers
Function
ContainsEscapeSequence
ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), which can manipulate a terminal when printed.
pkg/iostreams/content.go:18
↓ 5 callers
Method
Count
()
api/reaction_groups.go:42
↓ 5 callers
Method
Create
(name string, tmplType ExtTemplateType)
pkg/extensions/extension.go:39
↓ 5 callers
Function
DiscussionClientFunc
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 callers
Method
EnableDryRunMode
()
pkg/extensions/extension.go:40
↓ 5 callers
Method
Error
()
internal/barista/observability/telemetry.twirp.go:840
↓ 5 callers
Function
FetchLatestRelease
FetchLatestRelease finds the latest published release for a repository.
pkg/cmd/release/shared/fetch.go:237
↓ 5 callers
Function
FindByID
FindByID returns the agent host with the given ID, or an error if not found.
internal/skills/registry/registry.go:350
↓ 5 callers
Function
FormatSlice
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 callers
Method
ForwardPortToListener
ForwardPortToListener implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:41
↓ 5 callers
Method
GetByDigest
(params FetchParams)
pkg/cmd/attestation/api/client.go:67
↓ 5 callers
Method
GetComment
GetComment fetches a single discussion comment by node ID.
pkg/cmd/discussion/client/client.go:54
↓ 5 callers
Function
GetVariableEntity
(orgName, envName string)
pkg/cmd/variable/shared/shared.go:52
↓ 5 callers
Function
GistIDFromURL
(gistURL string)
pkg/cmd/gist/shared/shared.go:84
↓ 5 callers
Function
GitHubReleaseBundle
(t *testing.T)
pkg/cmd/attestation/test/data/data.go:26
↓ 5 callers
Method
HasEnvToken
HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
internal/gh/gh.go:114
↓ 5 callers
Method
HeadLabel
()
api/queries_pr.go:302
↓ 5 callers
Function
HostnameValidator
(hostname string)
internal/ghinstance/host.go:36
↓ 5 callers
Function
Indent
(s, indent string)
internal/text/text.go:19
↓ 5 callers
Method
InstallName
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 callers
Function
IsBinaryContents
(contents []byte)
pkg/cmd/gist/shared/shared.go:217
↓ 5 callers
Method
IsPinned
()
pkg/cmd/extension/extension.go:150
↓ 5 callers
Method
IsTTY
IsTTY gets whether the TablePrinter will render to a terminal.
internal/tableprinter/table_printer.go:20
↓ 5 callers
Method
IssueFeatures
()
internal/featuredetection/feature_detection.go:16
↓ 5 callers
Function
IssueRepoInfo
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 callers
Method
ListCategories
ListCategories returns the discussion categories available in a repository.
pkg/cmd/discussion/client/client.go:37
↓ 5 callers
Method
ListCodespaces
(ctx context.Context, opts api.ListCodespacesOptions)
pkg/cmd/codespace/common.go:73
↓ 5 callers
Function
ListenTCP
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 callers
Method
MultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/pr/shared/survey.go:43
↓ 5 callers
Method
Mutate
TODO: un-export this since it couples the caller heavily to api.GraphQLClient
pkg/cmd/project/shared/queries/queries.go:102
↓ 5 callers
Function
New
(editorCmd string, io *iostreams.IOStreams)
internal/prompter/prompter.go:55
↓ 5 callers
Function
NewAssignableUser
(id, login, name string)
api/queries_repo.go:1176
↓ 5 callers
Function
NewDetector
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:159
↓ 5 callers
Function
NewMockSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:53
↓ 5 callers
Function
NewQualifiedHeadRefWithoutOwner
(branchName string)
pkg/cmd/pr/shared/find_refs_resolution.go:39
↓ 5 callers
Function
NewRemote
(name string, u string)
git/objects.go:42
↓ 5 callers
Function
NewService
NewService creates a new telemetry service with the provided flush function and options.
internal/telemetry/telemetry.go:213
↓ 5 callers
Function
ParseQualifiedHeadRef
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 callers
Function
ResolveGitRoot
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 callers
Function
SSOURL
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 callers
Function
ScopesResponder
ScopesResponder returns a response with a 200 status code and the given OAuth scopes.
pkg/httpmock/stub.go:251
↓ 5 callers
Method
SearchFeatures
()
internal/featuredetection/feature_detection.go:21
↓ 5 callers
Function
SelectRun
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 callers
Method
SetHosts
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 callers
Method
SetRemoteResolution
(ctx context.Context, name, resolution string)
git/client.go:208
↓ 5 callers
Method
Setup
(hostname, username, authToken string)
pkg/cmd/auth/shared/git_credential.go:80
↓ 5 callers
Function
ShortRef
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 callers
Function
SigstoreBundle
SigstoreBundle returns a test sigstore-go bundle.Bundle
pkg/cmd/attestation/test/data/data.go:17
↓ 5 callers
Method
Size
()
pkg/iostreams/iostreams.go:48
↓ 5 callers
Method
StandardSearchString
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 callers
Method
StartSSHServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:47
↓ 5 callers
Function
StringSliceEnumFlag
(cmd *cobra.Command, p *[]string, name, shorthand string, defaultValues, options []string, usage string)
pkg/cmdutil/flags.go:38
↓ 5 callers
Method
TokenForUser
TokenForUser retrieves the authentication token and its source for a specified user and hostname.
internal/gh/gh.go:154
↓ 5 callers
Method
UnqualifiedHeadRef
UnqualifiedHeadRef returns a head ref in the form of the branch name only.
pkg/cmd/pr/create/create.go:88
↓ 5 callers
Method
Unwrap
()
pkg/cmd/pr/shared/finder.go:620
↓ 5 callers
Method
Update
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 callers
Method
UpdateAvailable
()
pkg/cmd/extension/extension.go:214
↓ 5 callers
Method
ViewerCanPush
ViewerCanPush is true when the requesting user has push access
api/queries_repo.go:267
↓ 5 callers
Function
decodeJSONBody
(req *http.Request, dest interface{})
pkg/httpmock/stub.go:116
↓ 5 callers
Function
dedent
(s string)
pkg/cmd/root/help.go:289
↓ 5 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/issue/edit/edit.go:250
↓ 5 callers
Method
getBundle
(url safeurl.SafeURL)
pkg/cmd/attestation/api/client.go:237
↓ 5 callers
Function
getSecrets
(client *http.Client, host string, u *safeurl.MutableSafeURL)
pkg/cmd/secret/list/list.go:318
↓ 5 callers
Method
hostname
()
pkg/cmd/status/status.go:201
↓ 5 callers
Function
issueResponseAllIssues2Fields
issueResponseAllIssues2Fields returns a GraphQL response for an issue with all Issues 2.0 fields populated.
pkg/cmd/issue/view/view_test.go:648
↓ 5 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/repo/list/list.go:119
↓ 5 callers
Function
makeTestAttestation
()
pkg/cmd/attestation/api/mock_client.go:17
↓ 5 callers
Function
matchSkillConventions
matchSkillConventions checks if a blob path matches any known skill convention.
internal/skills/discovery/discovery.go:438
↓ 5 callers
Function
mergeRun
Run the merge command.
pkg/cmd/pr/merge/merge.go:537
↓ 5 callers
Function
removeRun
(opts *DeleteOptions)
pkg/cmd/secret/delete/delete.go:90
↓ 5 callers
Method
revParse
(ctx context.Context, args ...string)
git/client.go:695
↓ 5 callers
Function
runAddItem
(config addItemConfig)
pkg/cmd/project/item-add/item_add.go:84
↓ 5 callers
Function
runCommand
(rt http.RoundTripper, pm *prompter.MockPrompter, isTTY bool, cli string)
pkg/cmd/issue/delete/delete_test.go:28
↓ 5 callers
Function
runCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/pr/ready/ready_test.go:91
↓ 5 callers
Function
runCopy
(config copyConfig)
pkg/cmd/project/copy/copy.go:88
↓ 5 callers
Function
runCreate
(config createConfig)
pkg/cmd/project/create/create.go:72
↓ 5 callers
Function
runCreateItem
(config createItemConfig)
pkg/cmd/project/item-create/item_create.go:85
↓ 5 callers
Function
runDelete
(config deleteConfig)
pkg/cmd/project/delete/delete.go:79
↓ 5 callers
Function
runDeleteItem
(config deleteItemConfig)
pkg/cmd/project/item-delete/item_delete.go:83
↓ 5 callers
Function
singleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
← previous
next →
401–500 of 5,846, ranked by callers