MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 3 callersMethodSetColorEnabled
(colorEnabled bool)
pkg/iostreams/iostreams.go:152
↓ 3 callersMethodSetSampleRate
(rate int)
internal/gh/ghtelemetry/telemetry.go:24
↓ 3 callersFunctionShortSHA
ShortSHA returns the first 8 characters of a SHA hash for display purposes.
git/client.go:750
↓ 3 callersMethodShowRefs
ShowRefs resolves fully-qualified refs to commit hashes.
git/client.go:243
↓ 3 callersMethodStartAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:380
↓ 3 callersMethodStartJupyterServer
(ctx context.Context)
internal/codespaces/rpc/invoker.go:45
↓ 3 callersFunctionStatusScopesResponder
StatusScopesResponder returns a response with the given status code and OAuth scopes.
pkg/httpmock/stub.go:257
↓ 3 callersMethodString
()
test/helpers.go:15
↓ 3 callersMethodStubIssueRepoInfoResponse
(owner, repo string)
pkg/httpmock/legacy.go:25
↓ 3 callersMethodTelemetry
Telemetry returns the configured telemetry setting, ignoring host scoping since telemetry is a global setting.
internal/gh/gh.go:61
↓ 3 callersMethodTest
(t *testing.T)
pkg/cmd/auth/shared/contract/helper_config.go:20
↓ 3 callersMethodTheme
()
pkg/iostreams/iostreams.go:47
↓ 3 callersMethodTokenFromKeyringForUser
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 callersMethodToplevelDir
ToplevelDir returns the top-level directory path of the current repository.
git/client.go:667
↓ 3 callersFunctionTryDetermineDefaultPRHead
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 callersFunctionTryLock
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 callersMethodType
()
internal/codespaces/connection/tunnels_api_server_mock.go:364
↓ 3 callersMethodUncommittedChangeCount
(ctx context.Context)
git/client.go:284
↓ 3 callersMethodUnmarshalJSON
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 callersMethodUnwrap
Unwrap returns the underlying value of a [Some] variant, or panics if called on a [None] variant.
pkg/option/option.go:71
↓ 3 callersMethodUnwrapOrElse
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 callersMethodUpdateAvailable
()
pkg/extensions/extension.go:25
↓ 3 callersFunctionUserKeys
(httpClient *http.Client, host, userHandle string)
pkg/cmd/ssh-key/shared/user_keys.go:24
↓ 3 callersMethodUsersForHost
UsersForHost retrieves a list of users configured for a specific host.
internal/gh/gh.go:151
↓ 3 callersMethodVSCode
VSCode opens a codespace in the local VS VSCode application.
pkg/cmd/codespace/code.go:36
↓ 3 callersMethodValid
()
pkg/cmd/attestation/verification/policy.go:35
↓ 3 callersMethodView
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/view.go:25
↓ 3 callersMethodWaitForOutput
(s string)
pkg/surveyext/editor_test.go:225
↓ 3 callersMethodWithMeta
(key string, val string)
internal/barista/observability/telemetry.twirp.go:888
↓ 3 callersFunctionWithPrAndIssueQueryParams
(client *api.Client, baseRepo ghrepo.Interface, baseURL string, state IssueMetadataState, projectsV1Support gh
pkg/cmd/pr/shared/params.go:16
↓ 3 callersMethodWithTheme
(theme huh.Theme)
internal/prompter/multi_select_with_search.go:422
↓ 3 callersMethodactivateUser
(hostname, user string)
internal/config/config.go:460
↓ 3 callersFunctionaddDeprecatedRepoShorthand
addDeprecatedRepoShorthand adds a -r parameter (deprecated shorthand for --repo) which instructs the user to use -R instead.
pkg/cmd/codespace/common.go:237
↓ 3 callersFunctionaddQuery
(path string, params map[string]interface{})
pkg/cmd/api/http.go:105
↓ 3 callersFunctionauthTokenWriteable
(src string)
pkg/cmd/auth/status/status.go:422
↓ 3 callersFunctionbaseServicePath
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 callersFunctionbp
(b bool)
pkg/cmd/repo/edit/edit_test.go:1002
↓ 3 callersMethodbranchWithGitStatus
branchWithGitStatus returns the branch with a star if the branch is currently being worked on.
pkg/cmd/codespace/common.go:216
↓ 3 callersMethodbuildSelectForm
(prompt, defaultValue string, options []string)
internal/prompter/huh_prompter.go:41
↓ 3 callersFunctioncallError
Call twirp.ServerHooks.Error if the hook is available
internal/barista/observability/telemetry.twirp.go:1064
↓ 3 callersFunctioncallResponseSent
Call twirp.ServerHooks.ResponseSent if the hook is available
internal/barista/observability/telemetry.twirp.go:1056
↓ 3 callersFunctioncheckValidExtension
(rootCmd *cobra.Command, m extensions.ExtensionManager, extName, extOwner string)
pkg/cmd/extension/command.go:694
↓ 3 callersFunctionchooseCodespaceFromList
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 callersFunctioncontentsAPIPath
contentsAPIPath builds the absolute Contents API URL for a path and optional ref.
pkg/cmd/repo/read-file/http.go:202
↓ 3 callersFunctioncopilotInstallDir
()
pkg/cmd/copilot/copilot.go:199
↓ 3 callersFunctioncreateFakeCreateEndpointServer
(t *testing.T, wantStatus int)
internal/codespaces/api/api_test.go:75
↓ 3 callersFunctioncreateRelease
(httpClient *http.Client, repo ghrepo.Interface, params map[string]interface{})
pkg/cmd/release/create/http.go:141
↓ 3 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/release/create/create.go:228
↓ 3 callersFunctioncreateZipArchive
(t *testing.T, files map[string]string)
pkg/cmd/run/view/logs_test.go:526
↓ 3 callersFunctiondeduplicateResults
deduplicateResults extracts unique (repo, namespace, skill name) triples from code search hits.
pkg/cmd/skills/search/search.go:790
↓ 3 callersFunctiondefaultPromptConfig
survey doesn't expose this
pkg/surveyext/editor_test.go:151
↓ 3 callersFunctiondetectFrontmatter
(c []byte)
pkg/githubtemplate/github_template.go:130
↓ 3 callersMethodeditDiscussionLabels
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 callersFunctioneditRun
(ctx context.Context, opts *EditOptions)
pkg/cmd/repo/edit/edit.go:236
↓ 3 callersFunctioneditRun
(opts *EditOptions)
pkg/cmd/pr/edit/edit.go:246
↓ 3 callersFunctionexampleAnswerableDiscussion
()
pkg/cmd/discussion/view/view_test.go:1176
↓ 3 callersFunctionexecutable
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 callersMethodfetchCodespaces
(ctx context.Context)
pkg/cmd/codespace/codespace_selector.go:83
↓ 3 callersFunctionfetchReleasePath
(ctx context.Context, httpClient *http.Client, url safeurl.SafeURL)
pkg/cmd/release/shared/fetch.go:281
↓ 3 callersFunctionfieldByName
(v reflect.Value, field string)
pkg/cmdutil/json_flags.go:326
↓ 3 callersFunctionfieldByName
(v reflect.Value, field string)
api/export_pr.go:252
↓ 3 callersFunctionfileNames
(files []os.DirEntry)
pkg/cmd/extension/manager_test.go:1507
↓ 3 callersFunctionfile_observability_v1_telemetry_proto_rawDescGZIP
()
internal/barista/observability/telemetry.pb.go:239
↓ 3 callersMethodfilepath
(key string)
pkg/cmd/run/view/view.go:76
↓ 3 callersFunctionfillPlaceholders
fillPlaceholders replaces placeholders with values from the current repository
pkg/cmd/api/api.go:574
↓ 3 callersFunctionfindNextPage
(linkValue string)
internal/codespaces/api/api.go:476
↓ 3 callersFunctionformatLinkedIssueRef
formatLinkedIssueRef formats an issue reference as owner/repo#N.
pkg/cmd/issue/view/view.go:356
↓ 3 callersFunctionformatPlanHosts
(hosts []*registry.AgentHost)
pkg/cmd/skills/install/install.go:1037
↓ 3 callersFunctionformatStars
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 callersFunctionfriendlyDir
(dir string)
pkg/cmd/skills/install/install.go:1133
↓ 3 callersFunctiongenerateReleaseNotes
(httpClient *http.Client, repo ghrepo.Interface, tagName, target, previousTagName string)
pkg/cmd/release/create/http.go:76
↓ 3 callersMethodget
(hostname, key string)
internal/config/config.go:53
↓ 3 callersFunctiongetBody
(opts *SetOptions)
pkg/cmd/variable/set/set.go:266
↓ 3 callersFunctiongetBody
(opts *SetOptions)
pkg/cmd/secret/set/set.go:413
↓ 3 callersFunctiongetJobNameForLogFilename
(name string)
pkg/cmd/run/view/logs.go:246
↓ 3 callersFunctiongetStateEntry
(stateFilePath string)
internal/update/update.go:147
↓ 3 callersFunctionghIds
(s *[]string)
pkg/cmd/pr/shared/editable_http.go:209
↓ 3 callersFunctionguessGistName
(files map[string]*shared.GistFile)
pkg/cmd/gist/create/create.go:244
↓ 3 callersFunctionhandleError
(err error)
pkg/cmd/project/shared/queries/queries.go:1713
↓ 3 callersFunctionhighlightMatch
(s string, filter *regexp.Regexp, matched *bool, color, highlight func(string) string)
pkg/cmd/gist/list/list.go:272
↓ 3 callersMethodhydrateSessionPullRequestsAndUsers
hydrateSessionPullRequestsAndUsers hydrates pull request and user information in sessions
pkg/cmd/agent-task/capi/sessions.go:429
↓ 3 callersMethodinstallBin
(repo ghrepo.Interface, target string)
pkg/cmd/extension/manager.go:282
↓ 3 callersFunctioninteractiveRepoInfo
name, description, and visibility
pkg/cmd/repo/create/create.go:896
↓ 3 callersFunctionisGarage
(h string)
internal/ghinstance/host.go:32
↓ 3 callersFunctionlistIssues
(client *api.Client, repo ghrepo.Interface, filters prShared.FilterOptions, limit int)
pkg/cmd/issue/list/http.go:15
↓ 3 callersFunctionlistLabels
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 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/issue/list/list.go:134
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/variable/list/list.go:79
↓ 3 callersFunctionlistRun
(opts *ListOptions)
pkg/cmd/secret/list/list.go:107
↓ 3 callersFunctionloadBundlesFromJSONLinesFile
(path string)
pkg/cmd/attestation/verification/attestation.go:58
↓ 3 callersFunctionlockRun
lockRun will lock or unlock a conversation.
pkg/cmd/issue/lock/lock.go:227
↓ 3 callersFunctionlockfilePath
lockfilePath returns the absolute path to the lock file.
internal/skills/lockfile/lockfile.go:43
↓ 3 callersFunctionloginRun
(opts *LoginOptions)
pkg/cmd/auth/login/login.go:168
↓ 3 callersFunctionlogoutRun
(opts *LogoutOptions)
pkg/cmd/auth/logout/logout.go:79
↓ 3 callersFunctionmanPrintFlags
(buf *bytes.Buffer, flags *pflag.FlagSet)
internal/docs/man.go:142
↓ 3 callersFunctionmatchHiddenDirConventions
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 callersMethodmemoizedFetch
()
pkg/cmd/pr/shared/templates.go:231
↓ 3 callersFunctionminimalNode
minimalNode returns a minimal JSON discussion node with the given id and title.
pkg/cmd/discussion/client/client_test.go:24
↓ 3 callersFunctionmockMigration
(doFunc func(config *ghConfig.Config) error)
internal/config/migrate_test.go:232
↓ 3 callersMethodmodeOctal
modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
pkg/cmd/repo/read-dir/http.go:58
← previousnext →801–900 of 5,909, ranked by callers