MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 2 callersFunctionDiscoverSkills
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 callersMethodDisplayName
()
api/queries_pr_review.go:188
↓ 2 callersMethodDisplayNames
DisplayNames returns a list of display names for the assigned actors.
api/queries_issue.go:158
↓ 2 callersMethodDisplayValue
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 callersMethodDisplayableReviews
()
api/queries_pr_review.go:117
↓ 2 callersMethodEditCodespace
(ctx context.Context, codespaceName string, params *EditCodespaceParams)
internal/codespaces/api/api.go:1162
↓ 2 callersMethodEditor
Editor returns the configured editor, optionally scoped by host.
internal/gh/gh.go:47
↓ 2 callersMethodEmoji
()
api/reaction_groups.go:46
↓ 2 callersFunctionEndpointNeedsScopes
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 callersFunctionEntityName
(orgOption string, repoI ghrepo.Interface)
pkg/cmd/ruleset/shared/shared.go:123
↓ 2 callersMethodError
()
pkg/cmdutil/errors.go:64
↓ 2 callersMethodError
()
internal/safepaths/absolute.go:72
↓ 2 callersMethodErrorf
(string, ...interface{})
internal/browser/stub.go:20
↓ 2 callersMethodExists
(key string)
pkg/cmd/run/view/view.go:35
↓ 2 callersMethodExitCode
()
git/client.go:49
↓ 2 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:268
↓ 2 callersFunctionExtractContents
ExtractContents returns the template contents without the YAML front-matter
pkg/githubtemplate/github_template.go:117
↓ 2 callersFunctionExtractName
ExtractName returns the name of the template from YAML front-matter
pkg/githubtemplate/github_template.go:87
↓ 2 callersFunctionExtractTitle
ExtractTitle returns the title of the template from YAML front-matter
pkg/githubtemplate/github_template.go:102
↓ 2 callersFunctionFetchDescriptionsConcurrent
FetchDescriptionsConcurrent fetches descriptions with bounded concurrency.
internal/skills/discovery/discovery.go:664
↓ 2 callersFunctionFetchOptions
(client *api.Client, repo ghrepo.Interface, editable *Editable, projectV1Support gh.ProjectsV1Support)
pkg/cmd/pr/shared/editable.go:532
↓ 2 callersFunctionFieldsToEditSurvey
(p EditPrompter, editable *Editable)
pkg/cmd/pr/shared/editable.go:480
↓ 2 callersMethodFilename
()
pkg/cmd/gist/shared/shared.go:46
↓ 2 callersFunctionFilterAttestationsByTag
(attestations []*api.Attestation, tagName string)
pkg/cmd/release/shared/attestation.go:58
↓ 2 callersMethodFilterByHosts
Filter remotes by given hostnames, maintains original order
context/remote.go:38
↓ 2 callersFunctionFindLegacy
FindLegacy returns the file path of the default(legacy) template
pkg/githubtemplate/github_template.go:58
↓ 2 callersFunctionFindNameCollisions
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 callersFunctionFindNonLegacy
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 callersMethodFlush
()
pkg/cmd/pr/create/regexp_writer.go:54
↓ 2 callersMethodFocus
()
internal/prompter/multi_select_with_search.go:381
↓ 2 callersFunctionFormatCollisions
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 callersMethodForwardPort
ForwardPort informs the host that we would like to forward the given port.
internal/codespaces/portforwarder/port_forwarder.go:104
↓ 2 callersMethodForwardPorts
(ctx context.Context, selector *CodespaceSelector, ports []string, allInterfaces bool)
pkg/cmd/codespace/ports.go:324
↓ 2 callersFunctionGenManTree
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 callersFunctionGenMarkdownTreeCustom
GenMarkdownTreeCustom is the same as GenMarkdownTree, but with custom filePrepender and linkHandler.
internal/docs/markdown.go:180
↓ 2 callersMethodGenerateSSHKey
(keyName string, passphrase string)
pkg/ssh/ssh_keys.go:51
↓ 2 callersMethodGetCommentReplies
GetCommentReplies returns a comment's parent discussion along with a page of the comment's replies.
pkg/cmd/discussion/client/client.go:35
↓ 2 callersFunctionGetCurrentLogin
(httpClient httpClient, hostname, authToken string)
pkg/cmd/auth/shared/login_flow.go:253
↓ 2 callersFunctionGetJob
(client *api.Client, repo ghrepo.Interface, jobID string)
pkg/cmd/run/shared/shared.go:525
↓ 2 callersMethodGetJob
GetJob retrieves an agent job
pkg/cmd/agent-task/capi/job.go:135
↓ 2 callersFunctionGetJobs
(client *api.Client, repo ghrepo.Interface, runID int64, jobsURL safeurl.SafeURL, attempt uint64)
pkg/cmd/run/shared/shared.go:490
↓ 2 callersFunctionGetMockApi
(allowOrgPorts bool)
pkg/cmd/codespace/ports_test.go:130
↓ 2 callersMethodGetOrgMemberCodespace
(ctx context.Context, orgName string, userName string, codespaceName string)
pkg/cmd/codespace/common.go:72
↓ 2 callersMethodGetRunningServer
(ctx context.Context, in *GetRunningServerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1_grpc.pb.go:25
↓ 2 callersMethodGetSession
GetSession retrieves a specific agent session by ID.
pkg/cmd/agent-task/capi/sessions.go:297
↓ 2 callersMethodGetSessionLogs
(ctx context.Context, id string)
pkg/cmd/agent-task/capi/client.go:18
↓ 2 callersMethodGetSpinnerDisabled
()
pkg/iostreams/iostreams.go:291
↓ 2 callersMethodGetTrustDomain
()
pkg/cmd/attestation/api/client.go:68
↓ 2 callersMethodGetWithComments
GetWithComments returns a discussion along with a page of its comments.
pkg/cmd/discussion/client/client.go:33
↓ 2 callersFunctionGetWorkflowContent
(client *api.Client, repo ghrepo.Interface, workflow Workflow, ref string)
pkg/cmd/workflow/shared/shared.go:243
↓ 2 callersMethodGray
Deprecated: Use Muted instead for thematically contrasting color.
pkg/iostreams/color.go:137
↓ 2 callersMethodGreenf
(t string, args ...interface{})
pkg/iostreams/color.go:125
↓ 2 callersMethodHTTP
()
api/client.go:38
↓ 2 callersMethodHTTPUnixSocket
HTTPUnixSocket returns the configured HTTP unix socket, optionally scoped by host.
internal/gh/gh.go:51
↓ 2 callersMethodID
ID is the ID of the project field.
pkg/cmd/project/shared/queries/queries.go:979
↓ 2 callersFunctionInjectGitHubMetadata
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 callersFunctionInjectLocalMetadata
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 callersMethodInputHostname
()
pkg/cmd/auth/shared/prompt.go:6
↓ 2 callersMethodInstallCalls
InstallCalls gets all the calls that were made to Install. Check the length with: len(mockedExtensionManager.InstallCalls())
pkg/extensions/manager_mock.go:279
↓ 2 callersFunctionInstallLocal
InstallLocal copies skills from a local directory to the target install location.
internal/skills/installer/installer.go:156
↓ 2 callersMethodInstallSelected
()
pkg/cmd/extension/browse/browse.go:222
↓ 2 callersMethodIsBinary
()
pkg/extensions/extension.go:26
↓ 2 callersMethodIsConfigured
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 callersMethodIsDefault
()
pkg/cmd/pr/shared/params.go:188
↓ 2 callersMethodIsDirty
()
pkg/cmd/repo/sync/git.go:17
↓ 2 callersMethodIsEdited
()
pkg/cmd/pr/shared/comments.go:22
↓ 2 callersFunctionIsGitHubActions
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 callersMethodIsHidden
()
pkg/cmd/pr/shared/comments.go:23
↓ 2 callersMethodIsIgnored
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 callersFunctionIsInternalPort
IsInternalPort returns true if the port is internal.
internal/codespaces/portforwarder/port_forwarder.go:409
↓ 2 callersFunctionIsOfficial
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 callersFunctionIsTerminal
IsTerminal determines if a file descriptor is an interactive terminal / TTY.
internal/update/update.go:192
↓ 2 callersMethodIsTrueColorSupported
()
pkg/iostreams/iostreams.go:46
↓ 2 callersFunctionIsURL
(u string)
git/url.go:8
↓ 2 callersFunctionIsUserCancellation
(err error)
pkg/cmdutil/errors.go:43
↓ 2 callersMethodKeepAlive
(reason string)
internal/codespaces/portforwarder/port_forwarder.go:49
↓ 2 callersMethodLess
(i, j int)
pkg/cmd/status/status.go:158
↓ 2 callersMethodLink
()
pkg/cmd/pr/shared/commentable.go:32
↓ 2 callersMethodLink
()
pkg/cmd/pr/shared/comments.go:24
↓ 2 callersMethodList
List returns discussions in a repository matching the given filters.
pkg/cmd/discussion/client/client.go:27
↓ 2 callersMethodList
(runID string)
pkg/cmd/run/download/http.go:23
↓ 2 callersMethodList
(runID string)
pkg/cmd/run/download/download.go:31
↓ 2 callersMethodListCodespaces
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 callersFunctionListGists
(client *http.Client, hostname string, limit int, filter *regexp.Regexp, includeContent bool, visibility strin
pkg/cmd/gist/shared/shared.go:103
↓ 2 callersFunctionListHeader
(repoName string, itemName string, matchCount int, totalMatchCount int, hasFilters bool)
pkg/cmd/pr/shared/display.go:73
↓ 2 callersFunctionListLinkedBranches
(client *Client, repo ghrepo.Interface, issueNumber int)
api/queries_branch_issue_reference.go:51
↓ 2 callersFunctionListNoResults
(repoName string, itemName string, hasFilters bool)
pkg/cmd/pr/shared/display.go:66
↓ 2 callersFunctionListOrgRulesets
(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool)
pkg/cmd/ruleset/shared/http.go:40
↓ 2 callersFunctionListRepoRulesets
(httpClient *http.Client, repo ghrepo.Interface, limit int, includeParents bool)
pkg/cmd/ruleset/shared/http.go:30
↓ 2 callersMethodListSessionsByResourceID
ListSessionsByResourceID retrieves sessions associated with the given resource type and ID.
pkg/cmd/agent-task/capi/sessions.go:371
↓ 2 callersFunctionListSkillFiles
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 callersFunctionListURLWithQuery
(listURL string, options FilterOptions, advancedIssueSearchSyntax bool)
pkg/cmd/pr/shared/params.go:222
↓ 2 callersMethodLoginOrSlug
()
api/queries_pr_review.go:149
↓ 2 callersMethodLogins
()
api/queries_issue.go:136
↓ 2 callersMethodLogs
(ctx context.Context, selector *CodespaceSelector, follow bool)
pkg/cmd/codespace/logs.go:35
↓ 2 callersFunctionMain
()
internal/ghcmd/cmd.go:52
↓ 2 callersMethodMarkDirty
()
pkg/cmd/pr/shared/state.go:47
↓ 2 callersFunctionMatchSkillPath
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 callersMethodMinutes
()
pkg/cmd/codespace/create.go:60
↓ 2 callersMethodName
Name is the name of the project field.
pkg/cmd/project/shared/queries/queries.go:991
← previousnext →1,001–1,100 of 5,909, ranked by callers