MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 6 callersMethodSetTokenRefresher
SetTokenRefresher supplies the refresher used to renew tokens. It is provided after construction because the refresher depends on the plain HTTP clien
internal/gh/gh.go:314
↓ 6 callersMethodShouldSetup
()
pkg/cmd/auth/shared/git_credential.go:175
↓ 6 callersMethodStartedTime
()
pkg/cmd/run/shared/shared.go:114
↓ 6 callersFunctionSupportedHost
SupportedHost reports whether event subscriptions are available on host. They are only available on github.com, not on GitHub Enterprise Server or GHE
pkg/cmd/event/client/client.go:256
↓ 6 callersFunctionSymbol
(cs *iostreams.ColorScheme, status Status, conclusion Conclusion)
pkg/cmd/run/shared/shared.go:600
↓ 6 callersFunctionTitle
Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case.
internal/text/text.go:24
↓ 6 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
↓ 6 callersMethodType
()
pkg/cmdutil/flags.go:119
↓ 6 callersMethodType
Type is the underlying type of the project item.
pkg/cmd/project/shared/queries/queries.go:604
↓ 6 callersMethodValid
()
pkg/cmd/attestation/verification/policy.go:35
↓ 6 callersFunctionValidAliasExpansionFunc
ValidAliasExpansionFunc returns a function that will check if the given string is a valid alias expansion. An expansion is valid if: - it is a shell e
pkg/cmd/alias/shared/validations.go:36
↓ 6 callersFunctionValidAliasNameFunc
ValidAliasNameFunc returns a function that will check if the given string is a valid alias name. A name is valid if: - it does not shadow an existing
pkg/cmd/alias/shared/validations.go:15
↓ 6 callersMethodValidate
Validate checks name using the same lexical rules as [ValidateChild].
internal/safepaths/root.go:158
↓ 6 callersMethodViewerCanTriage
ViewerCanTriage is true when the requesting user can triage issues and pull requests
api/queries_repo.go:277
↓ 6 callersMethodWorkflowName
WorkflowName returns the human-readable name of the workflow that this run belongs to. TODO: consider lazy-loading the underlying API data to avoid ex
pkg/cmd/run/shared/shared.go:160
↓ 6 callersMethodWorktrees
()
pkg/cmd/repo/sync/git.go:12
↓ 6 callersFunctionassetsFromArgs
Resolved through the public entry point, so a fixture is built the way a command builds one.
internal/attachments/flags_test.go:34
↓ 6 callersFunctioncheckStringOmits
(t *testing.T, got, expected string)
internal/docs/docs_test.go:107
↓ 6 callersMethodclose
()
evals/src/core/actor.ts:33
↓ 6 callersFunctioncmdWrite
(args []string, stdout io.Writer)
script/ghmock/gitcmd.go:126
↓ 6 callersFunctioncreateRun
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:427
↓ 6 callersFunctiondedicatedWait
(call: Call)
evals/src/suites/events/commands.ts:19
↓ 6 callersMethoddelete
(name string)
acceptance/fixture_repository_test.go:28
↓ 6 callersFunctiondeprecated
(dirs ast.DirectiveList)
script/ghmock/gqlscaffold.go:399
↓ 6 callersMethodfetchBundleFromAttestations
(attestations []*Attestation)
pkg/cmd/attestation/api/client.go:196
↓ 6 callersFunctiongit
(workDir: string, env: NodeJS.ProcessEnv, ...args: string[])
evals/src/core/io.ts:63
↓ 6 callersFunctionhttpResponse
(status int, req *http.Request, body io.Reader)
pkg/httpmock/stub.go:270
↓ 6 callersMethodinstallDir
()
pkg/cmd/extension/manager.go:594
↓ 6 callersFunctionnewIOStreams
(cfg gh.Config, invokingAgent agents.AgentName)
internal/ghcmd/cmd.go:363
↓ 6 callersMethodobject
(obj map[string]any, sel ast.SelectionSet)
script/ghmock/trim.go:62
↓ 6 callersFunctionoptional
optional turns an empty description into null, as GitHub returns it.
script/ghmock/introspection.go:409
↓ 6 callersMethodreadEvents
readEvents prints each event of the stream as one line of JSON until the stream ends. It returns the end frame, or nil when the stream ended without o
pkg/cmd/event/listen/listen.go:437
↓ 6 callersMethodreadRuns
()
script/ghmock/store.go:219
↓ 6 callersFunctionredact
(text: string, secrets: string[])
evals/src/core/io.ts:72
↓ 6 callersFunctionrequireExtensionHTTPError
(t *testing.T, err error, status int)
pkg/cmd/extension/http_test.go:32
↓ 6 callersMethodrest
()
script/ghmock/checker.go:77
↓ 6 callersFunctionrunClose
(config closeConfig)
pkg/cmd/project/close/close.go:85
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, isTTY bool, cli string)
pkg/cmd/issue/list/list_test.go:76
↓ 6 callersFunctionrunCommand
(rt http.RoundTripper, branch string, isTTY bool, cli string)
pkg/cmd/pr/view/view_test.go:177
↓ 6 callersFunctionrunEdit
(config editConfig)
pkg/cmd/project/edit/edit.go:93
↓ 6 callersMethodselectedEntry
()
pkg/cmd/extension/browse/model.go:401
↓ 6 callersMethodselectedKeys
()
internal/prompter/multi_select_with_search.go:187
↓ 6 callersFunctionsetRun
(opts *SetOptions)
pkg/cmd/secret/set/set.go:203
↓ 6 callersFunctionsingleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
↓ 6 callersFunctionstubLocalExtension
(tempDir, path string)
pkg/cmd/extension/manager_test.go:1545
↓ 6 callersFunctiontestFullConfig
()
internal/config/migrate_test.go:245
↓ 6 callersFunctiontestUploader
(reg *httpmock.Registry)
internal/attachments/attach_test.go:30
↓ 6 callersMethodtick
(now: number, trigger: Call | undefined, source: "timer" | "post-tool")
evals/src/core/actor.ts:6
↓ 6 callersMethodupload
upload sends the file's bytes and returns the asset URL to reference from the markdown.
internal/attachments/client.go:88
↓ 5 callersFunctionAddAuthTokenHeaderWithRefresh
AddAuthTokenHeaderWithRefresh is the refresh-aware counterpart of AddAuthTokenHeader. It renews a near-expiry token before attaching it, and is the at
api/http_client.go:206
↓ 5 callersMethodAddRemote
(ctx context.Context, name, urlStr string, trackingBranches []string)
git/client.go:843
↓ 5 callersMethodBaseRef
BaseRef returns the base branch name.
pkg/cmd/pr/create/create.go:101
↓ 5 callersMethodBlue
(t string)
pkg/iostreams/color.go:181
↓ 5 callersMethodCacheDir
CacheDir returns the directory where the cacheable artifacts can be persisted.
internal/gh/gh.go:78
↓ 5 callersMethodClone
(ctx context.Context, cloneURL string, args []string, mods ...CommandModifier)
git/client.go:920
↓ 5 callersFunctionConfig
Config reads internal debug overrides from the environment. Without the ghdebug build tag it ignores the environment and returns a DebugConfig with no
internal/debug/config_disabled.go:11
↓ 5 callersFunctionContainsEscapeSequence
ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), which can manipulate a terminal when printed.
pkg/iostreams/content.go:18
↓ 5 callersMethodCreateSubscription
CreateSubscription subscribes to events of the given types for the resource at resourceURL. Creation is idempotent: an active subscription for the sam
pkg/cmd/event/client/client.go:47
↓ 5 callersFunctionDiscussionClientFunc
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 callersMethodDispatch
(args []string, stdin io.Reader, stdout, stderr io.Writer)
pkg/extensions/extension.go:38
↓ 5 callersMethodEnableDryRunMode
()
pkg/extensions/extension.go:40
↓ 5 callersMethodError
()
internal/safepaths/root.go:478
↓ 5 callersMethodError
()
internal/barista/observability/telemetry.twirp.go:840
↓ 5 callersFunctionEventClientFunc
EventClientFunc returns a function that builds an event client for a host, using the factory's HTTP client.
pkg/cmd/event/shared/client.go:9
↓ 5 callersFunctionFindByID
FindByID returns the agent host with the given ID, or an error if not found.
internal/skills/registry/registry.go:351
↓ 5 callersFunctionFindIssueOrPR
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/issue/shared/lookup.go:136
↓ 5 callersFunctionFormatSlice
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:122
↓ 5 callersMethodForwardPortToListener
ForwardPortToListener implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:41
↓ 5 callersFunctionFuzzyIn
FuzzyIn returns a human readable description of how far b lies in the future relative to a, such as "in about 7 hours". Each unit is rounded to the ne
internal/text/text.go:54
↓ 5 callersMethodGetByDigest
(params FetchParams)
pkg/cmd/attestation/api/client.go:67
↓ 5 callersMethodGetComment
GetComment fetches a single discussion comment by node ID.
pkg/cmd/discussion/client/client.go:51
↓ 5 callersFunctionGetVariableEntity
(orgName, envName string)
pkg/cmd/variable/shared/shared.go:52
↓ 5 callersFunctionGistIDFromURL
(gistURL string)
pkg/cmd/gist/shared/shared.go:84
↓ 5 callersMethodGitDir
(ctx context.Context)
git/client.go:735
↓ 5 callersFunctionGitHubReleaseBundle
(t *testing.T)
pkg/cmd/attestation/test/data/data.go:26
↓ 5 callersMethodHasEnvToken
HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
internal/gh/gh.go:248
↓ 5 callersMethodHeadLabel
()
api/queries_pr.go:309
↓ 5 callersFunctionHostnameValidator
(hostname string)
internal/ghinstance/host.go:36
↓ 5 callersFunctionIndent
(s, indent string)
internal/text/text.go:19
↓ 5 callersMethodInstallName
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:82
↓ 5 callersFunctionIsBinaryContents
(contents []byte)
pkg/cmd/gist/shared/shared.go:214
↓ 5 callersMethodIsOurs
IsOurs returns true if the helper command is the GitHub CLI credential helper
pkg/cmd/auth/shared/gitcredentials/helper_config.go:78
↓ 5 callersMethodIsPinned
()
pkg/cmd/extension/extension.go:150
↓ 5 callersMethodIsTTY
IsTTY gets whether the TablePrinter will render to a terminal.
internal/tableprinter/table_printer.go:20
↓ 5 callersMethodIssueFeatures
()
internal/featuredetection/feature_detection.go:16
↓ 5 callersMethodIssues
(Query)
pkg/search/searcher.go:33
↓ 5 callersMethodListCategories
ListCategories returns the discussion categories available in a repository.
pkg/cmd/discussion/client/client.go:34
↓ 5 callersMethodListCodespaces
(ctx context.Context, opts api.ListCodespacesOptions)
pkg/cmd/codespace/common.go:73
↓ 5 callersFunctionLock
Lock blocks until it acquires an exclusive lock on the given path, retrying TryLock with small sleep gaps while another process holds the lock. It sto
internal/flock/flock.go:30
↓ 5 callersFunctionMockInitWithError
(err error)
internal/keyring/keyring.go:80
↓ 5 callersMethodMultiSelect
(prompt string, defaults []string, options []string)
pkg/cmd/pr/shared/survey.go:43
↓ 5 callersMethodMutate
TODO: un-export this since it couples the caller heavily to api.GraphQLClient
pkg/cmd/project/shared/queries/queries.go:102
↓ 5 callersFunctionNew
(editorCmd string, io *iostreams.IOStreams)
internal/prompter/prompter.go:55
↓ 5 callersFunctionNewAssignableUser
(id, login, name string)
api/queries_repo.go:1179
↓ 5 callersFunctionNewDetector
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:182
↓ 5 callersFunctionNewFrameReader
NewFrameReader returns a FrameReader that reads from r.
internal/eventstream/sse.go:44
↓ 5 callersFunctionNewMockSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:51
↓ 5 callersFunctionNewQualifiedHeadRefWithoutOwner
(branchName string)
pkg/cmd/pr/shared/find_refs_resolution.go:39
↓ 5 callersFunctionNewRemote
(name string, u string)
git/objects.go:42
↓ 5 callersFunctionNewTokenRefresher
NewTokenRefresher builds a TokenRefresher that renews credentials issued to gh's OAuth app. The provided HTTP client should be a plain client that set
internal/authflow/refresh.go:33
← previousnext →501–600 of 7,487, ranked by callers