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
↓ 2 callers
Function
DiscoverSkills
DiscoverSkills finds all non-hidden-dir skills in a repository at the given commit SHA. Hidden-dir skills are excluded; use DiscoverSkillsWithOptions
internal/skills/discovery/discovery.go:550
↓ 2 callers
Method
DisplayName
()
api/queries_pr_review.go:188
↓ 2 callers
Method
DisplayNames
DisplayNames returns a list of display names for the assigned actors.
api/queries_issue.go:158
↓ 2 callers
Method
DisplayValue
DisplayValue returns a single-line, human-readable rendering of the field value suitable for a table cell. Multi-value fields (labels, assignees, etc.
pkg/cmd/project/shared/queries/queries.go:481
↓ 2 callers
Method
DisplayableReviews
()
api/queries_pr_review.go:117
↓ 2 callers
Method
EditCodespace
(ctx context.Context, codespaceName string, params *EditCodespaceParams)
internal/codespaces/api/api.go:1162
↓ 2 callers
Method
Editor
Editor returns the configured editor, optionally scoped by host.
internal/gh/gh.go:47
↓ 2 callers
Method
Emoji
()
api/reaction_groups.go:46
↓ 2 callers
Function
EndpointNeedsScopes
EndpointNeedsScopes adds additional OAuth scopes to an HTTP response as if they were returned from the server endpoint. This improves HTTP 4xx error m
api/client.go:197
↓ 2 callers
Function
EntityName
(orgOption string, repoI ghrepo.Interface)
pkg/cmd/ruleset/shared/shared.go:123
↓ 2 callers
Method
Error
()
pkg/cmdutil/errors.go:64
↓ 2 callers
Method
Error
()
internal/safepaths/absolute.go:72
↓ 2 callers
Method
Errorf
(string, ...interface{})
internal/browser/stub.go:20
↓ 2 callers
Method
Exists
(key string)
pkg/cmd/run/view/view.go:35
↓ 2 callers
Method
ExitCode
()
git/client.go:49
↓ 2 callers
Method
ExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:268
↓ 2 callers
Function
ExtractContents
ExtractContents returns the template contents without the YAML front-matter
pkg/githubtemplate/github_template.go:117
↓ 2 callers
Function
ExtractName
ExtractName returns the name of the template from YAML front-matter
pkg/githubtemplate/github_template.go:87
↓ 2 callers
Function
ExtractTitle
ExtractTitle returns the title of the template from YAML front-matter
pkg/githubtemplate/github_template.go:102
↓ 2 callers
Function
FetchDescriptionsConcurrent
FetchDescriptionsConcurrent fetches descriptions with bounded concurrency.
internal/skills/discovery/discovery.go:664
↓ 2 callers
Function
FetchOptions
(client *api.Client, repo ghrepo.Interface, editable *Editable, projectV1Support gh.ProjectsV1Support)
pkg/cmd/pr/shared/editable.go:532
↓ 2 callers
Function
FieldsToEditSurvey
(p EditPrompter, editable *Editable)
pkg/cmd/pr/shared/editable.go:480
↓ 2 callers
Method
Filename
()
pkg/cmd/gist/shared/shared.go:46
↓ 2 callers
Function
FilterAttestationsByTag
(attestations []*api.Attestation, tagName string)
pkg/cmd/release/shared/attestation.go:58
↓ 2 callers
Method
FilterByHosts
Filter remotes by given hostnames, maintains original order
context/remote.go:38
↓ 2 callers
Function
FindLegacy
FindLegacy returns the file path of the default(legacy) template
pkg/githubtemplate/github_template.go:58
↓ 2 callers
Function
FindNameCollisions
FindNameCollisions detects skills whose Name fields collide (meaning they would be installed to the same directory) and returns a sorted slice of coll
internal/skills/discovery/collisions.go:21
↓ 2 callers
Function
FindNonLegacy
FindNonLegacy returns the list of template file paths from the template folder (according to the "upgraded multiple template builder")
pkg/githubtemplate/github_template.go:16
↓ 2 callers
Method
Flush
()
pkg/cmd/pr/create/regexp_writer.go:54
↓ 2 callers
Method
Focus
()
internal/prompter/multi_select_with_search.go:381
↓ 2 callers
Function
FormatCollisions
FormatCollisions builds a human-readable string listing each collision, suitable for embedding in an error message. Each collision is formatted as "na
internal/skills/discovery/collisions.go:49
↓ 2 callers
Method
ForwardPort
ForwardPort informs the host that we would like to forward the given port.
internal/codespaces/portforwarder/port_forwarder.go:104
↓ 2 callers
Method
ForwardPorts
(ctx context.Context, selector *CodespaceSelector, ports []string, allInterfaces bool)
pkg/cmd/codespace/ports.go:324
↓ 2 callers
Function
GenManTree
GenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work cor
internal/docs/man.go:26
↓ 2 callers
Function
GenMarkdownTreeCustom
GenMarkdownTreeCustom is the same as GenMarkdownTree, but with custom filePrepender and linkHandler.
internal/docs/markdown.go:180
↓ 2 callers
Method
GenerateSSHKey
(keyName string, passphrase string)
pkg/ssh/ssh_keys.go:51
↓ 2 callers
Method
GetCommentReplies
GetCommentReplies returns a comment's parent discussion along with a page of the comment's replies.
pkg/cmd/discussion/client/client.go:35
↓ 2 callers
Function
GetCurrentLogin
(httpClient httpClient, hostname, authToken string)
pkg/cmd/auth/shared/login_flow.go:253
↓ 2 callers
Function
GetJob
(client *api.Client, repo ghrepo.Interface, jobID string)
pkg/cmd/run/shared/shared.go:525
↓ 2 callers
Method
GetJob
GetJob retrieves an agent job
pkg/cmd/agent-task/capi/job.go:135
↓ 2 callers
Function
GetJobs
(client *api.Client, repo ghrepo.Interface, runID int64, jobsURL safeurl.SafeURL, attempt uint64)
pkg/cmd/run/shared/shared.go:490
↓ 2 callers
Function
GetMockApi
(allowOrgPorts bool)
pkg/cmd/codespace/ports_test.go:130
↓ 2 callers
Method
GetOrgMemberCodespace
(ctx context.Context, orgName string, userName string, codespaceName string)
pkg/cmd/codespace/common.go:72
↓ 2 callers
Method
GetRunningServer
(ctx context.Context, in *GetRunningServerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1_grpc.pb.go:25
↓ 2 callers
Method
GetSession
GetSession retrieves a specific agent session by ID.
pkg/cmd/agent-task/capi/sessions.go:297
↓ 2 callers
Method
GetSessionLogs
(ctx context.Context, id string)
pkg/cmd/agent-task/capi/client.go:18
↓ 2 callers
Method
GetSpinnerDisabled
()
pkg/iostreams/iostreams.go:291
↓ 2 callers
Method
GetTrustDomain
()
pkg/cmd/attestation/api/client.go:68
↓ 2 callers
Method
GetWithComments
GetWithComments returns a discussion along with a page of its comments.
pkg/cmd/discussion/client/client.go:33
↓ 2 callers
Function
GetWorkflowContent
(client *api.Client, repo ghrepo.Interface, workflow Workflow, ref string)
pkg/cmd/workflow/shared/shared.go:243
↓ 2 callers
Method
Gray
Deprecated: Use Muted instead for thematically contrasting color.
pkg/iostreams/color.go:137
↓ 2 callers
Method
Greenf
(t string, args ...interface{})
pkg/iostreams/color.go:125
↓ 2 callers
Method
HTTP
()
api/client.go:38
↓ 2 callers
Method
HTTPUnixSocket
HTTPUnixSocket returns the configured HTTP unix socket, optionally scoped by host.
internal/gh/gh.go:51
↓ 2 callers
Method
ID
ID is the ID of the project field.
pkg/cmd/project/shared/queries/queries.go:979
↓ 2 callers
Function
InjectGitHubMetadata
InjectGitHubMetadata adds GitHub tracking metadata to the spec-defined "metadata" map in frontmatter. Keys are prefixed with "github-" to avoid collis
internal/skills/frontmatter/frontmatter.go:70
↓ 2 callers
Function
InjectLocalMetadata
InjectLocalMetadata adds local-source tracking metadata to frontmatter. sourcePath is the absolute path to the source skill directory.
internal/skills/frontmatter/frontmatter.go:102
↓ 2 callers
Method
InputHostname
()
pkg/cmd/auth/shared/prompt.go:6
↓ 2 callers
Method
InstallCalls
InstallCalls gets all the calls that were made to Install. Check the length with: len(mockedExtensionManager.InstallCalls())
pkg/extensions/manager_mock.go:279
↓ 2 callers
Function
InstallLocal
InstallLocal copies skills from a local directory to the target install location.
internal/skills/installer/installer.go:156
↓ 2 callers
Method
InstallSelected
()
pkg/cmd/extension/browse/browse.go:222
↓ 2 callers
Method
IsBinary
()
pkg/extensions/extension.go:26
↓ 2 callers
Method
IsConfigured
IsConfigured returns true if the helper has a non-empty command, i.e. the git config had an entry
pkg/cmd/auth/shared/gitcredentials/helper_config.go:73
↓ 2 callers
Method
IsDefault
()
pkg/cmd/pr/shared/params.go:188
↓ 2 callers
Method
IsDirty
()
pkg/cmd/repo/sync/git.go:17
↓ 2 callers
Method
IsEdited
()
pkg/cmd/pr/shared/comments.go:22
↓ 2 callers
Function
IsGitHubActions
IsGitHubActions determines if the current execution context is within GitHub Actions. GitHub Actions sets the GITHUB_ACTIONS environment variable to "
internal/ci/ci.go:17
↓ 2 callers
Method
IsHidden
()
pkg/cmd/pr/shared/comments.go:23
↓ 2 callers
Method
IsIgnored
IsIgnored reports whether the given path is ignored by .gitignore rules. Returns an error for fatal git failures (e.g. path outside repository).
git/client.go:731
↓ 2 callers
Function
IsInternalPort
IsInternalPort returns true if the port is internal.
internal/codespaces/portforwarder/port_forwarder.go:409
↓ 2 callers
Function
IsOfficial
IsOfficial reports whether the given extension command name and owner match an entry in the OfficialExtensions registry. Owner must be checked alongsi
pkg/extensions/official.go:43
↓ 2 callers
Function
IsTerminal
IsTerminal determines if a file descriptor is an interactive terminal / TTY.
internal/update/update.go:192
↓ 2 callers
Method
IsTrueColorSupported
()
pkg/iostreams/iostreams.go:46
↓ 2 callers
Function
IsURL
(u string)
git/url.go:8
↓ 2 callers
Function
IsUserCancellation
(err error)
pkg/cmdutil/errors.go:43
↓ 2 callers
Method
KeepAlive
(reason string)
internal/codespaces/portforwarder/port_forwarder.go:49
↓ 2 callers
Method
Less
(i, j int)
pkg/cmd/status/status.go:158
↓ 2 callers
Method
Link
()
pkg/cmd/pr/shared/commentable.go:32
↓ 2 callers
Method
Link
()
pkg/cmd/pr/shared/comments.go:24
↓ 2 callers
Method
List
List returns discussions in a repository matching the given filters.
pkg/cmd/discussion/client/client.go:27
↓ 2 callers
Method
List
(runID string)
pkg/cmd/run/download/http.go:23
↓ 2 callers
Method
List
(runID string)
pkg/cmd/run/download/download.go:31
↓ 2 callers
Method
ListCodespaces
ListCodespaces returns a list of codespaces for the user. Pass a negative limit to request all pages from the API until all codespaces have been fetch
internal/codespaces/api/api.go:369
↓ 2 callers
Function
ListGists
(client *http.Client, hostname string, limit int, filter *regexp.Regexp, includeContent bool, visibility strin
pkg/cmd/gist/shared/shared.go:103
↓ 2 callers
Function
ListHeader
(repoName string, itemName string, matchCount int, totalMatchCount int, hasFilters bool)
pkg/cmd/pr/shared/display.go:73
↓ 2 callers
Function
ListLinkedBranches
(client *Client, repo ghrepo.Interface, issueNumber int)
api/queries_branch_issue_reference.go:51
↓ 2 callers
Function
ListNoResults
(repoName string, itemName string, hasFilters bool)
pkg/cmd/pr/shared/display.go:66
↓ 2 callers
Function
ListOrgRulesets
(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool)
pkg/cmd/ruleset/shared/http.go:40
↓ 2 callers
Function
ListRepoRulesets
(httpClient *http.Client, repo ghrepo.Interface, limit int, includeParents bool)
pkg/cmd/ruleset/shared/http.go:30
↓ 2 callers
Method
ListSessionsByResourceID
ListSessionsByResourceID retrieves sessions associated with the given resource type and ID.
pkg/cmd/agent-task/capi/sessions.go:371
↓ 2 callers
Function
ListSkillFiles
ListSkillFiles returns all files in a skill directory as public SkillFile structs with paths relative to the skill root.
internal/skills/discovery/discovery.go:845
↓ 2 callers
Function
ListURLWithQuery
(listURL string, options FilterOptions, advancedIssueSearchSyntax bool)
pkg/cmd/pr/shared/params.go:222
↓ 2 callers
Method
LoginOrSlug
()
api/queries_pr_review.go:149
↓ 2 callers
Method
Logins
()
api/queries_issue.go:136
↓ 2 callers
Method
Logs
(ctx context.Context, selector *CodespaceSelector, follow bool)
pkg/cmd/codespace/logs.go:35
↓ 2 callers
Function
Main
()
internal/ghcmd/cmd.go:52
↓ 2 callers
Method
MarkDirty
()
pkg/cmd/pr/shared/state.go:47
↓ 2 callers
Function
MatchSkillPath
MatchSkillPath checks if a file path matches any known skill convention and returns the skill name and namespace. Returns empty strings if the path do
internal/skills/discovery/discovery.go:407
↓ 2 callers
Method
Minutes
()
pkg/cmd/codespace/create.go:60
↓ 2 callers
Method
Name
Name is the name of the project field.
pkg/cmd/project/shared/queries/queries.go:991
← previous
next →
1,001–1,100 of 5,909, ranked by callers