MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 3 callersFunctionwriteSkill
writeSkill creates skills/<name>/SKILL.md with the given content.
pkg/cmd/skills/publish/publish_test.go:1596
↓ 2 callersMethodAccept
()
script/ghmock/tls.go:151
↓ 2 callersMethodAccessibleColorsEnabled
()
pkg/iostreams/iostreams.go:471
↓ 2 callersMethodAccessiblePrompter
AccessiblePrompter returns the configured accessible_prompter setting, optionally scoped by host.
internal/gh/gh.go:45
↓ 2 callersMethodActionsFeatures
()
internal/featuredetection/feature_detection.go:23
↓ 2 callersFunctionAddAuthTokenHeader
AddAuthTokenHeader adds an authentication token header for the host specified by the request, using the primitive token source. It is the backward-com
api/http_client.go:186
↓ 2 callersFunctionAddJSONFlagsWithoutShorthand
(cmd *cobra.Command, exportTarget *Exporter, fields []string)
pkg/cmdutil/json_flags.go:35
↓ 2 callersMethodAlgorithm
Algorithm returns the artifact's algorithm
pkg/cmd/attestation/artifact/artifact.go:82
↓ 2 callersMethodAreFlagsValid
AreFlagsValid checks that the provided flag combination is valid and returns an error otherwise
pkg/cmd/attestation/verify/options.go:64
↓ 2 callersMethodAreFlagsValid
()
pkg/cmd/attestation/download/options.go:30
↓ 2 callersFunctionAssetsFromArgs
(args []string)
pkg/cmd/release/shared/upload.go:36
↓ 2 callersMethodAuthToken
()
pkg/cmd/auth/shared/prompt.go:7
↓ 2 callersFunctionAuthTokenRefreshable
AuthTokenRefreshable reports whether the token is stored by gh and can be renewed with `gh auth refresh`. TODO: this matches a token prefix itself. I
pkg/cmd/auth/shared/writeable.go:14
↓ 2 callersMethodBaseRepo
()
pkg/cmd/pr/shared/find_refs_resolution.go:112
↓ 2 callersMethodBody
Body is the body of the project item.
pkg/cmd/project/shared/queries/queries.go:622
↓ 2 callersMethodBrowse
(string)
pkg/cmd/extension/browse/browse.go:39
↓ 2 callersMethodBrowseURL
()
pkg/cmd/codespace/ports.go:133
↓ 2 callersFunctionBuildMockResult
(b *bundle.Bundle, buildConfigURI, buildSignerURI, sourceRepoOwnerURI, sourceRepoURI, issuer string)
pkg/cmd/attestation/verification/mock_verifier.go:68
↓ 2 callersFunctionBuildSigstoreJsMockResult
(t *testing.T)
pkg/cmd/attestation/verification/mock_verifier.go:91
↓ 2 callersMethodCachedClient
(ttl time.Duration)
pkg/cmd/status/status.go:206
↓ 2 callersFunctionCalculateDigestWithAlgorithm
(r io.Reader, alg string)
pkg/cmd/attestation/artifact/digest/digest.go:37
↓ 2 callersFunctionCapiClientFunc
(f *cmdutil.Factory)
pkg/cmd/agent-task/shared/capi.go:21
↓ 2 callersMethodCheck
Check returns an error if a file already exists at destination
pkg/cmd/release/download/download.go:416
↓ 2 callersFunctionCheckAuth
(cfg gh.Config)
pkg/cmdutil/auth_check.go:29
↓ 2 callersFunctionCheckForExtensionUpdate
CheckForExtensionUpdate checks whether an update exists for a specific extension based on extension type and recency of last check within past 24 hour
internal/update/update.go:52
↓ 2 callersFunctionCheckForUpdate
CheckForUpdate checks whether an update exists for the GitHub CLI based on recency of last check within past 24 hours.
internal/update/update.go:93
↓ 2 callersFunctionCheckUploadTarget
CheckUploadTarget is CheckIssue for a command that uploads files with --attach. It refuses a pull request the same way, and its one lookup also return
pkg/cmd/issue/artifact/shared/shared.go:246
↓ 2 callersMethodClose
()
pkg/cmd/release/download/download.go:401
↓ 2 callersMethodClose
()
internal/codespaces/portforwarder/port_forwarder.go:52
↓ 2 callersFunctionColorForProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:14
↓ 2 callersMethodColorLabels
()
pkg/iostreams/iostreams.go:122
↓ 2 callersFunctionCommentablePreRun
(cmd *cobra.Command, opts *CommentableOptions, telemetry ghtelemetry.InvocationRecorder)
pkg/cmd/pr/shared/commentable.go:70
↓ 2 callersFunctionCompleteEventTypes
CompleteEventTypes returns the known event types that complete the last comma-separated item of toComplete, each prefixed with the preceding items and
pkg/cmd/event/shared/completion.go:20
↓ 2 callersFunctionConcurrentUpload
(httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload
pkg/cmd/release/shared/upload.go:111
↓ 2 callersFunctionConfigDir
()
internal/config/config.go:999
↓ 2 callersMethodConfigureOurs
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
pkg/cmd/auth/shared/gitcredentials/helper_config.go:22
↓ 2 callersMethodConfirm
(message string)
pkg/cmd/codespace/delete.go:36
↓ 2 callersMethodConfirm
Confirm prompts the user to confirm an action.
internal/prompter/prompter.go:38
↓ 2 callersMethodConfirmCalls
ConfirmCalls gets all the calls that were made to Confirm. Check the length with: len(mockedPrompter.ConfirmCalls())
internal/prompter/prompter_mock.go:221
↓ 2 callersMethodConnect
Connect connects the client to the tunnel.
internal/codespaces/connection/connection.go:89
↓ 2 callersFunctionContent
Content returns the full license report, including the main report and all third-party licenses.
internal/licenses/licenses.go:13
↓ 2 callersMethodCopyFile
CopyFile copies content into a file beneath the root. Creation permissions follow [Root.Create].
internal/safepaths/root.go:253
↓ 2 callersMethodCreate
Create creates a new file beneath the root. Creation is exclusive unless an existing regular file is safely opened and truncated for replacement. file
internal/safepaths/root.go:167
↓ 2 callersMethodCreateCodespace
(ctx context.Context, params *api.CreateCodespaceParams)
pkg/cmd/codespace/common.go:77
↓ 2 callersMethodCreateJob
CreateJob queues a new job using the v1 Jobs API. It may or may not return Pull Request information. If Pull Request information is required following
pkg/cmd/agent-task/capi/job.go:62
↓ 2 callersFunctionCreateRepoTransformToV4
(apiClient *Client, hostname string, method string, path safeurl.SafeURL, body io.Reader)
api/queries_repo.go:1619
↓ 2 callersMethodCreated
()
pkg/cmd/pr/shared/comments.go:20
↓ 2 callersMethodCurrentUsername
()
pkg/cmd/status/status.go:214
↓ 2 callersMethodCurrentVersion
()
pkg/cmd/extension/extension.go:88
↓ 2 callersMethodDataType
DataType is the data type of the project field, e.g. TEXT, NUMBER, DATE, SINGLE_SELECT, or ITERATION. It returns an empty string for unknown field typ
pkg/cmd/project/shared/queries/queries.go:1006
↓ 2 callersFunctionDeferredUpdateIssue
DeferredUpdateIssue runs issue mutations described by opts in parallel and returns any failures as a single joined error so a single failure does not
api/queries_issue.go:668
↓ 2 callersMethodDeleteComment
DeleteComment deletes a discussion comment or reply.
pkg/cmd/discussion/client/client.go:49
↓ 2 callersFunctionDiscoverLocalSkills
DiscoverLocalSkills finds non-hidden-dir skills in a local directory using the same conventions as remote discovery. Hidden-dir skills are excluded; u
internal/skills/discovery/discovery.go:950
↓ 2 callersFunctionDiscoverSkillByPath
DiscoverSkillByPath looks up a single skill by its exact path in the repository.
internal/skills/discovery/discovery.go:710
↓ 2 callersFunctionDiscoverSkillFiles
DiscoverSkillFiles returns all file paths belonging to a skill directory by fetching the skill's subtree directly using its tree SHA.
internal/skills/discovery/discovery.go:813
↓ 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:161
↓ 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:53
↓ 2 callersMethodEmoji
()
api/reaction_groups.go:46
↓ 2 callersFunctionEntityName
(orgOption string, repoI ghrepo.Interface)
pkg/cmd/ruleset/shared/shared.go:123
↓ 2 callersMethodError
()
pkg/cmdutil/errors.go:64
↓ 2 callersMethodErrorf
(string, ...any)
internal/browser/stub.go:20
↓ 2 callersFunctionEventTypesHelp
EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline.
pkg/cmd/event/shared/help.go:34
↓ 2 callersMethodExists
(key string)
pkg/cmd/run/view/view.go:35
↓ 2 callersMethodExpiringCredentials
ExpiringCredentials returns the configured expiring_credentials setting, optionally scoped by host.
internal/gh/gh.go:65
↓ 2 callersMethodExportData
(_ []string)
pkg/cmd/project/shared/queries/queries.go:268
↓ 2 callersFunctionExtBrowse
(opts ExtBrowseOpts)
pkg/cmd/extension/browse/browse.go:111
↓ 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 callersMethodFetch
Below are commands that make network calls and need authentication credentials supplied from gh.
git/client.go:878
↓ 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:517
↓ 2 callersFunctionFieldsToEditSurvey
(p EditPrompter, editable *Editable)
pkg/cmd/pr/shared/editable.go:474
↓ 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 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:105
↓ 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:32
↓ 2 callersFunctionGetCurrentLogin
GetCurrentLogin returns the login of the user the token belongs to. The token is passed explicitly because this runs before the token is stored in co
pkg/cmd/auth/shared/login_flow.go:358
↓ 2 callersFunctionGetJob
(client *api.Client, repo ghrepo.Interface, jobID string)
pkg/cmd/run/shared/shared.go:522
↓ 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:487
↓ 2 callersFunctionGetMockApi
(allowOrgPorts bool)
pkg/cmd/codespace/ports_test.go:129
↓ 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:294
↓ 2 callersMethodGetSessionLogs
(ctx context.Context, id string)
pkg/cmd/agent-task/capi/client.go:20
← previousnext →1,301–1,400 of 7,487, ranked by callers