Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
5,909 in github.com/cli/cli
⨍
Functions
5,909
◇
Types & classes
1,299
↓ 3 callers
Method
SetColorEnabled
(colorEnabled bool)
pkg/iostreams/iostreams.go:152
↓ 3 callers
Method
SetSampleRate
(rate int)
internal/gh/ghtelemetry/telemetry.go:24
↓ 3 callers
Function
ShortSHA
ShortSHA returns the first 8 characters of a SHA hash for display purposes.
git/client.go:750
↓ 3 callers
Method
ShowRefs
ShowRefs resolves fully-qualified refs to commit hashes.
git/client.go:243
↓ 3 callers
Method
StartAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:380
↓ 3 callers
Method
StartJupyterServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:45
↓ 3 callers
Function
StatusScopesResponder
StatusScopesResponder returns a response with the given status code and OAuth scopes.
pkg/httpmock/stub.go:257
↓ 3 callers
Method
String
()
test/helpers.go:15
↓ 3 callers
Method
StubIssueRepoInfoResponse
(owner, repo string)
pkg/httpmock/legacy.go:25
↓ 3 callers
Method
Telemetry
Telemetry returns the configured telemetry setting, ignoring host scoping since telemetry is a global setting.
internal/gh/gh.go:61
↓ 3 callers
Method
Test
(t *testing.T)
pkg/cmd/auth/shared/contract/helper_config.go:20
↓ 3 callers
Method
Theme
()
pkg/iostreams/iostreams.go:47
↓ 3 callers
Method
TokenFromKeyringForUser
TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching in encrypted storage. An empty username will
internal/gh/gh.go:124
↓ 3 callers
Method
ToplevelDir
ToplevelDir returns the top-level directory path of the current repository.
git/client.go:667
↓ 3 callers
Function
TryDetermineDefaultPRHead
TryDetermineDefaultPRHead is a thin wrapper around determineDefaultPushTarget, which attempts to convert a present remote into a resolved repository.
pkg/cmd/pr/shared/find_refs_resolution.go:185
↓ 3 callers
Function
TryLock
TryLock attempts to acquire an exclusive, non-blocking flock on the given path. Returns the locked file and an unlock function on success. The caller
internal/flock/flock_unix.go:16
↓ 3 callers
Method
Type
()
internal/codespaces/connection/tunnels_api_server_mock.go:364
↓ 3 callers
Method
UncommittedChangeCount
(ctx context.Context)
git/client.go:284
↓ 3 callers
Method
UnmarshalJSON
UnmarshalJSON lets a struct field typed as Untrusted be populated directly by json.Unmarshal, so provenance is preserved across a JSON decode. This is
pkg/iostreams/untrusted.go:63
↓ 3 callers
Method
Unwrap
Unwrap returns the underlying value of a [Some] variant, or panics if called on a [None] variant.
pkg/option/option.go:71
↓ 3 callers
Method
UnwrapOrElse
UnwrapOrElse returns the underlying value of a [Some] variant, or the result of calling the provided function on a [None] variant.
pkg/option/option.go:91
↓ 3 callers
Method
UpdateAvailable
()
pkg/extensions/extension.go:25
↓ 3 callers
Function
UserKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/ssh-key/shared/user_keys.go:24
↓ 3 callers
Method
UsersForHost
UsersForHost retrieves a list of users configured for a specific host.
internal/gh/gh.go:151
↓ 3 callers
Method
VSCode
VSCode opens a codespace in the local VS VSCode application.
pkg/cmd/codespace/code.go:36
↓ 3 callers
Method
Valid
()
pkg/cmd/attestation/verification/policy.go:35
↓ 3 callers
Method
View
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/view.go:25
↓ 3 callers
Method
WaitForOutput
(s string)
pkg/surveyext/editor_test.go:225
↓ 3 callers
Method
WithMeta
(key string, val string)
internal/barista/observability/telemetry.twirp.go:888
↓ 3 callers
Function
WithPrAndIssueQueryParams
(client *api.Client, baseRepo ghrepo.Interface, baseURL string, state IssueMetadataState, projectsV1Support gh
pkg/cmd/pr/shared/params.go:16
↓ 3 callers
Method
WithTheme
(theme huh.Theme)
internal/prompter/multi_select_with_search.go:422
↓ 3 callers
Method
activateUser
(hostname, user string)
internal/config/config.go:460
↓ 3 callers
Function
addDeprecatedRepoShorthand
addDeprecatedRepoShorthand adds a -r parameter (deprecated shorthand for --repo) which instructs the user to use -R instead.
pkg/cmd/codespace/common.go:237
↓ 3 callers
Function
addQuery
(path string, params map[string]interface{})
pkg/cmd/api/http.go:105
↓ 3 callers
Function
authTokenWriteable
(src string)
pkg/cmd/auth/status/status.go:422
↓ 3 callers
Function
baseServicePath
baseServicePath composes the path prefix for the service (without <Method>). e.g.: baseServicePath("/twirp", "my.pkg", "MyService") returns => "/twi
internal/barista/observability/telemetry.twirp.go:656
↓ 3 callers
Function
bp
(b bool)
pkg/cmd/repo/edit/edit_test.go:1002
↓ 3 callers
Method
branchWithGitStatus
branchWithGitStatus returns the branch with a star if the branch is currently being worked on.
pkg/cmd/codespace/common.go:216
↓ 3 callers
Method
buildSelectForm
(prompt, defaultValue string, options []string)
internal/prompter/huh_prompter.go:41
↓ 3 callers
Function
callError
Call twirp.ServerHooks.Error if the hook is available
internal/barista/observability/telemetry.twirp.go:1064
↓ 3 callers
Function
callResponseSent
Call twirp.ServerHooks.ResponseSent if the hook is available
internal/barista/observability/telemetry.twirp.go:1056
↓ 3 callers
Function
checkValidExtension
(rootCmd *cobra.Command, m extensions.ExtensionManager, extName, extOwner string)
pkg/cmd/extension/command.go:694
↓ 3 callers
Function
chooseCodespaceFromList
chooseCodespaceFromList returns the codespace that the user has interactively selected from the list, or an error if there are no codespaces.
pkg/cmd/codespace/common.go:93
↓ 3 callers
Function
contentsAPIPath
contentsAPIPath builds the absolute Contents API URL for a path and optional ref.
pkg/cmd/repo/read-file/http.go:202
↓ 3 callers
Function
copilotInstallDir
()
pkg/cmd/copilot/copilot.go:199
↓ 3 callers
Function
createFakeCreateEndpointServer
(t *testing.T, wantStatus int)
internal/codespaces/api/api_test.go:75
↓ 3 callers
Function
createRelease
(httpClient *http.Client, repo ghrepo.Interface, params map[string]interface{})
pkg/cmd/release/create/http.go:141
↓ 3 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/release/create/create.go:228
↓ 3 callers
Function
createZipArchive
(t *testing.T, files map[string]string)
pkg/cmd/run/view/logs_test.go:526
↓ 3 callers
Function
deduplicateResults
deduplicateResults extracts unique (repo, namespace, skill name) triples from code search hits.
pkg/cmd/skills/search/search.go:790
↓ 3 callers
Function
defaultPromptConfig
survey doesn't expose this
pkg/surveyext/editor_test.go:151
↓ 3 callers
Function
detectFrontmatter
(c []byte)
pkg/githubtemplate/github_template.go:130
↓ 3 callers
Method
editDiscussionLabels
editDiscussionLabels adds and removes labels on a discussion. Removals are applied before additions. Either slice may be nil or empty to skip that ste
pkg/cmd/discussion/client/client.go:901
↓ 3 callers
Function
editRun
(ctx context.Context, opts *EditOptions)
pkg/cmd/repo/edit/edit.go:236
↓ 3 callers
Function
editRun
(opts *EditOptions)
pkg/cmd/pr/edit/edit.go:246
↓ 3 callers
Function
exampleAnswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1176
↓ 3 callers
Function
executable
Finds the location of the executable for the current process as it's found in PATH, respecting symlinks. If the process couldn't determine its locatio
internal/ghcmd/cmd.go:441
↓ 3 callers
Method
fetchCodespaces
(ctx context.Context)
pkg/cmd/codespace/codespace_selector.go:83
↓ 3 callers
Function
fetchReleasePath
(ctx context.Context, httpClient *http.Client, url safeurl.SafeURL)
pkg/cmd/release/shared/fetch.go:281
↓ 3 callers
Function
fieldByName
(v reflect.Value, field string)
pkg/cmdutil/json_flags.go:326
↓ 3 callers
Function
fieldByName
(v reflect.Value, field string)
api/export_pr.go:252
↓ 3 callers
Function
fileNames
(files []os.DirEntry)
pkg/cmd/extension/manager_test.go:1507
↓ 3 callers
Function
file_observability_v1_telemetry_proto_rawDescGZIP
()
internal/barista/observability/telemetry.pb.go:239
↓ 3 callers
Method
filepath
(key string)
pkg/cmd/run/view/view.go:76
↓ 3 callers
Function
fillPlaceholders
fillPlaceholders replaces placeholders with values from the current repository
pkg/cmd/api/api.go:574
↓ 3 callers
Function
findNextPage
(linkValue string)
internal/codespaces/api/api.go:476
↓ 3 callers
Function
formatLinkedIssueRef
formatLinkedIssueRef formats an issue reference as owner/repo#N.
pkg/cmd/issue/view/view.go:356
↓ 3 callers
Function
formatPlanHosts
(hosts []*registry.AgentHost)
pkg/cmd/skills/install/install.go:1037
↓ 3 callers
Function
formatStars
formatStars formats a star count for display (e.g. 1700 > "1.7k"). TODO kw: Could be swapped for go-humanize.
pkg/cmd/skills/search/search.go:888
↓ 3 callers
Function
friendlyDir
(dir string)
pkg/cmd/skills/install/install.go:1133
↓ 3 callers
Function
generateReleaseNotes
(httpClient *http.Client, repo ghrepo.Interface, tagName, target, previousTagName string)
pkg/cmd/release/create/http.go:76
↓ 3 callers
Method
get
(hostname, key string)
internal/config/config.go:53
↓ 3 callers
Function
getBody
(opts *SetOptions)
pkg/cmd/variable/set/set.go:266
↓ 3 callers
Function
getBody
(opts *SetOptions)
pkg/cmd/secret/set/set.go:413
↓ 3 callers
Function
getJobNameForLogFilename
(name string)
pkg/cmd/run/view/logs.go:246
↓ 3 callers
Function
getStateEntry
(stateFilePath string)
internal/update/update.go:147
↓ 3 callers
Function
ghIds
(s *[]string)
pkg/cmd/pr/shared/editable_http.go:209
↓ 3 callers
Function
guessGistName
(files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:244
↓ 3 callers
Function
handleError
(err error)
pkg/cmd/project/shared/queries/queries.go:1713
↓ 3 callers
Function
highlightMatch
(s string, filter *regexp.Regexp, matched *bool, color, highlight func(string) string)
pkg/cmd/gist/list/list.go:272
↓ 3 callers
Method
hydrateSessionPullRequestsAndUsers
hydrateSessionPullRequestsAndUsers hydrates pull request and user information in sessions
pkg/cmd/agent-task/capi/sessions.go:429
↓ 3 callers
Method
installBin
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:282
↓ 3 callers
Function
interactiveRepoInfo
name, description, and visibility
pkg/cmd/repo/create/create.go:896
↓ 3 callers
Function
isGarage
(h string)
internal/ghinstance/host.go:32
↓ 3 callers
Function
listIssues
(client *api.Client, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:15
↓ 3 callers
Function
listLabels
listLabels lists the labels in the given repo. Pass -1 for limit to list all labels; otherwise, only that number of labels is returned for any number
pkg/cmd/label/http.go:68
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/issue/list/list.go:134
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/variable/list/list.go:79
↓ 3 callers
Function
listRun
(opts *ListOptions)
pkg/cmd/secret/list/list.go:107
↓ 3 callers
Function
loadBundlesFromJSONLinesFile
(path string)
pkg/cmd/attestation/verification/attestation.go:58
↓ 3 callers
Function
lockRun
lockRun will lock or unlock a conversation.
pkg/cmd/issue/lock/lock.go:227
↓ 3 callers
Function
lockfilePath
lockfilePath returns the absolute path to the lock file.
internal/skills/lockfile/lockfile.go:43
↓ 3 callers
Function
loginRun
(opts *LoginOptions)
pkg/cmd/auth/login/login.go:168
↓ 3 callers
Function
logoutRun
(opts *LogoutOptions)
pkg/cmd/auth/logout/logout.go:79
↓ 3 callers
Function
manPrintFlags
(buf *bytes.Buffer, flags *pflag.FlagSet)
internal/docs/man.go:142
↓ 3 callers
Function
matchHiddenDirConventions
matchHiddenDirConventions checks if a blob path matches a skill convention under a path that contains a hidden (dot-prefixed) directory. These pattern
internal/skills/discovery/discovery.go:504
↓ 3 callers
Method
memoizedFetch
()
pkg/cmd/pr/shared/templates.go:231
↓ 3 callers
Function
minimalNode
minimalNode returns a minimal JSON discussion node with the given id and title.
pkg/cmd/discussion/client/client_test.go:24
↓ 3 callers
Function
mockMigration
(doFunc func(config *ghConfig.Config) error)
internal/config/migrate_test.go:232
↓ 3 callers
Method
modeOctal
modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
pkg/cmd/repo/read-dir/http.go:58
← previous
next →
801–900 of 5,909, ranked by callers