Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
↓ 6 callers
Method
SetTokenRefresher
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 callers
Method
ShouldSetup
()
pkg/cmd/auth/shared/git_credential.go:175
↓ 6 callers
Method
StartedTime
()
pkg/cmd/run/shared/shared.go:114
↓ 6 callers
Function
SupportedHost
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 callers
Function
Symbol
(cs *iostreams.ColorScheme, status Status, conclusion Conclusion)
pkg/cmd/run/shared/shared.go:600
↓ 6 callers
Function
Title
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 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
↓ 6 callers
Method
Type
()
pkg/cmdutil/flags.go:119
↓ 6 callers
Method
Type
Type is the underlying type of the project item.
pkg/cmd/project/shared/queries/queries.go:604
↓ 6 callers
Method
Valid
()
pkg/cmd/attestation/verification/policy.go:35
↓ 6 callers
Function
ValidAliasExpansionFunc
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 callers
Function
ValidAliasNameFunc
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 callers
Method
Validate
Validate checks name using the same lexical rules as [ValidateChild].
internal/safepaths/root.go:158
↓ 6 callers
Method
ViewerCanTriage
ViewerCanTriage is true when the requesting user can triage issues and pull requests
api/queries_repo.go:277
↓ 6 callers
Method
WorkflowName
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 callers
Method
Worktrees
()
pkg/cmd/repo/sync/git.go:12
↓ 6 callers
Function
assetsFromArgs
Resolved through the public entry point, so a fixture is built the way a command builds one.
internal/attachments/flags_test.go:34
↓ 6 callers
Function
checkStringOmits
(t *testing.T, got, expected string)
internal/docs/docs_test.go:107
↓ 6 callers
Method
close
()
evals/src/core/actor.ts:33
↓ 6 callers
Function
cmdWrite
(args []string, stdout io.Writer)
script/ghmock/gitcmd.go:126
↓ 6 callers
Function
createRun
(opts *CreateOptions)
pkg/cmd/pr/create/create.go:427
↓ 6 callers
Function
dedicatedWait
(call: Call)
evals/src/suites/events/commands.ts:19
↓ 6 callers
Method
delete
(name string)
acceptance/fixture_repository_test.go:28
↓ 6 callers
Function
deprecated
(dirs ast.DirectiveList)
script/ghmock/gqlscaffold.go:399
↓ 6 callers
Method
fetchBundleFromAttestations
(attestations []*Attestation)
pkg/cmd/attestation/api/client.go:196
↓ 6 callers
Function
git
(workDir: string, env: NodeJS.ProcessEnv, ...args: string[])
evals/src/core/io.ts:63
↓ 6 callers
Function
httpResponse
(status int, req *http.Request, body io.Reader)
pkg/httpmock/stub.go:270
↓ 6 callers
Method
installDir
()
pkg/cmd/extension/manager.go:594
↓ 6 callers
Function
newIOStreams
(cfg gh.Config, invokingAgent agents.AgentName)
internal/ghcmd/cmd.go:363
↓ 6 callers
Method
object
(obj map[string]any, sel ast.SelectionSet)
script/ghmock/trim.go:62
↓ 6 callers
Function
optional
optional turns an empty description into null, as GitHub returns it.
script/ghmock/introspection.go:409
↓ 6 callers
Method
readEvents
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 callers
Method
readRuns
()
script/ghmock/store.go:219
↓ 6 callers
Function
redact
(text: string, secrets: string[])
evals/src/core/io.ts:72
↓ 6 callers
Function
requireExtensionHTTPError
(t *testing.T, err error, status int)
pkg/cmd/extension/http_test.go:32
↓ 6 callers
Method
rest
()
script/ghmock/checker.go:77
↓ 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:177
↓ 6 callers
Function
runEdit
(config editConfig)
pkg/cmd/project/edit/edit.go:93
↓ 6 callers
Method
selectedEntry
()
pkg/cmd/extension/browse/model.go:401
↓ 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
singleSkillTreeJSON
singleSkillTreeJSON returns tree entries for a single skill with the given name.
pkg/cmd/skills/install/install_test.go:289
↓ 6 callers
Function
stubLocalExtension
(tempDir, path string)
pkg/cmd/extension/manager_test.go:1545
↓ 6 callers
Function
testFullConfig
()
internal/config/migrate_test.go:245
↓ 6 callers
Function
testUploader
(reg *httpmock.Registry)
internal/attachments/attach_test.go:30
↓ 6 callers
Method
tick
(now: number, trigger: Call | undefined, source: "timer" | "post-tool")
evals/src/core/actor.ts:6
↓ 6 callers
Method
upload
upload sends the file's bytes and returns the asset URL to reference from the markdown.
internal/attachments/client.go:88
↓ 5 callers
Function
AddAuthTokenHeaderWithRefresh
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 callers
Method
AddRemote
(ctx context.Context, name, urlStr string, trackingBranches []string)
git/client.go:843
↓ 5 callers
Method
BaseRef
BaseRef returns the base branch name.
pkg/cmd/pr/create/create.go:101
↓ 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:78
↓ 5 callers
Method
Clone
(ctx context.Context, cloneURL string, args []string, mods ...CommandModifier)
git/client.go:920
↓ 5 callers
Function
Config
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 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
CreateSubscription
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 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
Dispatch
(args []string, stdin io.Reader, stdout, stderr io.Writer)
pkg/extensions/extension.go:38
↓ 5 callers
Method
EnableDryRunMode
()
pkg/extensions/extension.go:40
↓ 5 callers
Method
Error
()
internal/safepaths/root.go:478
↓ 5 callers
Method
Error
()
internal/barista/observability/telemetry.twirp.go:840
↓ 5 callers
Function
EventClientFunc
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 callers
Function
FindByID
FindByID returns the agent host with the given ID, or an error if not found.
internal/skills/registry/registry.go:351
↓ 5 callers
Function
FindIssueOrPR
(httpClient *http.Client, repo ghrepo.Interface, number int, fields []string)
pkg/cmd/issue/shared/lookup.go:136
↓ 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:122
↓ 5 callers
Method
ForwardPortToListener
ForwardPortToListener implements portforwarder.PortForwarder.
internal/codespaces/rpc/test/port_forwarder.go:41
↓ 5 callers
Function
FuzzyIn
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 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:51
↓ 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
Method
GitDir
(ctx context.Context)
git/client.go:735
↓ 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:248
↓ 5 callers
Method
HeadLabel
()
api/queries_pr.go:309
↓ 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:82
↓ 5 callers
Function
IsBinaryContents
(contents []byte)
pkg/cmd/gist/shared/shared.go:214
↓ 5 callers
Method
IsOurs
IsOurs returns true if the helper command is the GitHub CLI credential helper
pkg/cmd/auth/shared/gitcredentials/helper_config.go:78
↓ 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
Method
Issues
(Query)
pkg/search/searcher.go:33
↓ 5 callers
Method
ListCategories
ListCategories returns the discussion categories available in a repository.
pkg/cmd/discussion/client/client.go:34
↓ 5 callers
Method
ListCodespaces
(ctx context.Context, opts api.ListCodespacesOptions)
pkg/cmd/codespace/common.go:73
↓ 5 callers
Function
Lock
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 callers
Function
MockInitWithError
(err error)
internal/keyring/keyring.go:80
↓ 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:1179
↓ 5 callers
Function
NewDetector
(httpClient *http.Client, host string)
internal/featuredetection/feature_detection.go:182
↓ 5 callers
Function
NewFrameReader
NewFrameReader returns a FrameReader that reads from r.
internal/eventstream/sse.go:44
↓ 5 callers
Function
NewMockSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:51
↓ 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
NewTokenRefresher
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
← previous
next →
501–600 of 7,487, ranked by callers