MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,846 in github.com/cli/cli

↓ 2 callersFunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/issue/list/list.go:48
↓ 2 callersFunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/repo/list/list.go:42
↓ 2 callersFunctionNewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/secret/list/list.go:50
↓ 2 callersFunctionNewCmdMerge
(f *cmdutil.Factory, runF func(*MergeOptions) error)
pkg/cmd/pr/merge/merge.go:60
↓ 2 callersFunctionNewCmdOfficialExtensionStub
NewCmdOfficialExtensionStub creates a hidden stub command for an official extension that has not yet been installed. When invoked, it suggests install
pkg/cmd/root/official_extension_stub.go:20
↓ 2 callersFunctionNewCmdPreview
NewCmdPreview creates the "skills preview" command.
pkg/cmd/skills/preview/preview.go:44
↓ 2 callersFunctionNewCmdPublish
NewCmdPublish creates the "skills publish" command.
pkg/cmd/skills/publish/publish.go:91
↓ 2 callersFunctionNewCmdReady
(f *cmdutil.Factory, runF func(*ReadyOptions) error)
pkg/cmd/pr/ready/ready.go:26
↓ 2 callersFunctionNewCmdReview
(f *cmdutil.Factory, runF func(*ReviewOptions) error)
pkg/cmd/pr/review/review.go:34
↓ 2 callersFunctionNewCmdSearch
NewCmdSearch creates the "skills search" command.
pkg/cmd/skills/search/search.go:68
↓ 2 callersFunctionNewCmdSet
(f *cmdutil.Factory, runF func(*SetOptions) error)
pkg/cmd/secret/set/set.go:48
↓ 2 callersFunctionNewCmdTransfer
(f *cmdutil.Factory, runF func(*TransferOptions) error)
pkg/cmd/issue/transfer/transfer.go:27
↓ 2 callersFunctionNewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/pr/view/view.go:40
↓ 2 callersFunctionNewConfig
()
internal/config/config.go:40
↓ 2 callersFunctionNewCopilotReplacer
NewCopilotReplacer creates a replacer for assignee @copilot references.
pkg/cmd/pr/shared/params.go:339
↓ 2 callersFunctionNewDigestedArtifactForRelease
(digest string, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:57
↓ 2 callersFunctionNewDiscussionClient
NewDiscussionClient creates a DiscussionClient backed by the given HTTP client.
pkg/cmd/discussion/client/client.go:68
↓ 2 callersFunctionNewDownloadCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/download/download.go:19
↓ 2 callersFunctionNewExternalHTTPClient
NewExternalHTTPClient creates an HTTP client for talking to non-GitHub hosts. It includes debug logging and a User-Agent header but does not attach an
api/http_client.go:100
↓ 2 callersFunctionNewInspectCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/inspect/inspect.go:28
↓ 2 callersFunctionNewLogRenderer
()
pkg/cmd/agent-task/shared/log.go:25
↓ 2 callersFunctionNewMeReplacer
(apiClient *api.Client, hostname string)
pkg/cmd/pr/shared/params.go:291
↓ 2 callersFunctionNewRegexpWriter
(out io.Writer, re *regexp.Regexp, repl string)
pkg/cmd/pr/create/regexp_writer.go:9
↓ 2 callersFunctionNewRemoteCommand
NewRemoteCommand returns an exec.Cmd that will securely run a shell command on the remote machine.
internal/codespaces/ssh.go:53
↓ 2 callersFunctionNewReviewerBot
(login string)
api/queries_pr_review.go:212
↓ 2 callersFunctionNewReviewerTeam
NewReviewerTeam creates a new ReviewerTeam.
api/queries_pr_review.go:231
↓ 2 callersFunctionNewReviewerUser
(login, name string)
api/queries_pr_review.go:199
↓ 2 callersFunctionNewTelemetryAPIServer
NewTelemetryAPIServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the prov
internal/barista/observability/telemetry.twirp.go:241
↓ 2 callersFunctionNewWithWriter
NewWithWriter creates a TablePrinter from a Writer, whether the output is a terminal, the terminal width, and more.
internal/tableprinter/table_printer.go:58
↓ 2 callersFunctionNilStringFlag
NilStringFlag defines a new flag with a string pointer receiver. This is useful for differentiating between the flag being set to a blank value and th
pkg/cmdutil/flags.go:15
↓ 2 callersFunctionNoRulesetsFoundError
(orgOption string, repoI ghrepo.Interface, includeParents bool)
pkg/cmd/ruleset/shared/shared.go:114
↓ 2 callersMethodNotifyCodespaceOfClientActivity
(ctx context.Context, in *NotifyCodespaceOfClientActivityRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:25
↓ 2 callersMethodNumber
Number is the number of the project item. It is only valid for issues and pull requests.
pkg/cmd/project/shared/queries/queries.go:635
↓ 2 callersMethodOnRESTWithNextSuccessHelper
(hostname, method, p string, body io.Reader, data interface{}, hasNext bool)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:79
↓ 2 callersFunctionOrganizationTeam
OrganizationTeam fetch the team in an organization with the given slug
api/queries_org.go:52
↓ 2 callersMethodOwner
()
pkg/extensions/extension.go:28
↓ 2 callersMethodOwnerIDAndType
OwnerIDAndType returns the ID and OwnerType. The special login "@me" or an empty string queries the current user.
pkg/cmd/project/shared/queries/queries.go:1246
↓ 2 callersMethodOwnerType
()
pkg/cmd/project/shared/queries/queries.go:291
↓ 2 callersMethodOwnerType
()
pkg/cmd/project/shared/queries/queries.go:325
↓ 2 callersMethodPageDown
()
pkg/cmd/extension/browse/browse.go:252
↓ 2 callersMethodPageUp
()
pkg/cmd/extension/browse/browse.go:256
↓ 2 callersMethodPager
Pager returns the configured Pager, optionally scoped by host.
internal/gh/gh.go:53
↓ 2 callersFunctionParseDiscussionArg
ParseDiscussionArg parses a discussion number or URL from a command argument. It returns the discussion number and, if the argument was a URL, a repo
pkg/cmd/discussion/shared/lookup.go:17
↓ 2 callersFunctionParsePushDefault
(s string)
git/client.go:456
↓ 2 callersFunctionParseRulesForDisplay
(rules []RulesetRule)
pkg/cmd/ruleset/shared/shared.go:70
↓ 2 callersFunctionParseTelemetryState
ParseTelemetryState determines the telemetry state based on environment variables and configuration values. The GH_TELEMETRY environment variable take
internal/telemetry/telemetry.go:106
↓ 2 callersFunctionPartitionHiddenDirSkills
PartitionHiddenDirSkills splits skills into standard and hidden-dir groups.
internal/skills/discovery/discovery.go:113
↓ 2 callersMethodPassword
Password prompts the user to enter a password.
internal/prompter/prompter.go:36
↓ 2 callersMethodPath
()
pkg/cmd/extension/extension.go:47
↓ 2 callersMethodPathFromRoot
Show current directory relative to the top-level directory of repository.
git/client.go:684
↓ 2 callersFunctionPrStateWithDraft
(pr *api.PullRequest)
pkg/cmd/pr/shared/display.go:20
↓ 2 callersMethodPreface
()
pkg/jsoncolor/jsoncolor.go:20
↓ 2 callersMethodPreferEditorPrompt
PreferEditorPrompt returns the configured editor-based prompt, optionally scoped by host.
internal/gh/gh.go:57
↓ 2 callersFunctionPreserveInput
(io *iostreams.IOStreams, state *IssueMetadataState, createErr *error)
pkg/cmd/pr/shared/preserve.go:12
↓ 2 callersMethodProject
()
pkg/cmd/project/shared/queries/queries.go:761
↓ 2 callersMethodProjectItemIDByURL
ProjectItemIDByURL returns the project item ID for the issue or pull request at rawURL on the project identified by projectID. projectNumber is used o
pkg/cmd/project/shared/queries/resolve.go:153
↓ 2 callersMethodProjectNames
()
api/queries_issue.go:247
↓ 2 callersFunctionProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:7
↓ 2 callersMethodProjectTitles
()
api/queries_issue.go:255
↓ 2 callersFunctionProjectTitlesToPaths
(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support)
api/queries_repo.go:872
↓ 2 callersFunctionProjectsV2ItemsForIssue
ProjectsV2ItemsForIssue fetches all ProjectItems for an issue.
api/queries_projects_v2.go:65
↓ 2 callersFunctionProjectsV2ItemsForPullRequest
ProjectsV2ItemsForPullRequest fetches all ProjectItems for a pull request.
api/queries_projects_v2.go:136
↓ 2 callersFunctionPullRequestClose
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:742
↓ 2 callersFunctionPullRequestForRun
(client *api.Client, repo ghrepo.Interface, run Run)
pkg/cmd/run/shared/shared.go:619
↓ 2 callersFunctionPullRequestReopen
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:761
↓ 2 callersMethodQualifiedHeadRef
QualifiedHeadRef returns a stringified form of the head ref, varying depending on whether the head ref is in the same repository as the base ref. If t
pkg/cmd/pr/shared/find_refs_resolution.go:96
↓ 2 callersFunctionQueryHasStateClause
(searchQuery string)
pkg/cmd/pr/shared/params.go:269
↓ 2 callersMethodRawBytes
RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file writes). Same terminal caveat as Raw.
pkg/iostreams/untrusted.go:80
↓ 2 callersFunctionReactionGroupList
(rgs api.ReactionGroups)
pkg/cmd/pr/shared/reaction_groups.go:10
↓ 2 callersMethodRead
(p []byte)
pkg/cmd/api/pagination_test.go:271
↓ 2 callersMethodRead
Read wraps the underlying ReadWriteCloser's Read method and keeps the session alive with the "input" traffic type.
internal/codespaces/portforwarder/port_forwarder.go:445
↓ 2 callersMethodRebuild
(ctx context.Context, selector *CodespaceSelector, full bool)
pkg/cmd/codespace/rebuild.go:43
↓ 2 callersMethodRebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:26
↓ 2 callersFunctionRecordInstall
RecordInstall adds or updates a skill entry in the lock file. It uses a file-based lock to prevent concurrent read-modify-write races when multiple in
internal/skills/lockfile/lockfile.go:97
↓ 2 callersFunctionRecordTelemetry
(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder)
pkg/cmdutil/telemetry.go:12
↓ 2 callersFunctionRecordTelemetryForSubcommands
(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder)
pkg/cmdutil/telemetry.go:43
↓ 2 callersMethodRedf
(t string, args ...interface{})
pkg/iostreams/color.go:103
↓ 2 callersMethodRefresh
()
pkg/cmd/extension/browse/browse.go:240
↓ 2 callersMethodRefreshScreen
()
pkg/iostreams/iostreams.go:415
↓ 2 callersMethodRegisterConfirmDeletion
(prompt string, stub func(string) error)
internal/prompter/test.go:114
↓ 2 callersMethodReleaseFeatures
()
internal/featuredetection/feature_detection.go:22
↓ 2 callersMethodRemotes
(ctx context.Context)
git/client.go:164
↓ 2 callersMethodRemoveSelected
()
pkg/cmd/extension/browse/browse.go:226
↓ 2 callersFunctionRenameRepo
RenameRepo renames the repository on GitHub and returns the renamed repository
api/queries_repo.go:642
↓ 2 callersFunctionRenderAnnotations
(cs *iostreams.ColorScheme, annotations []Annotation)
pkg/cmd/run/shared/presentation.go:92
↓ 2 callersFunctionRenderJobsCompact
(cs *iostreams.ColorScheme, jobs []Job)
pkg/cmd/run/shared/presentation.go:50
↓ 2 callersFunctionRenderRunHeader
(cs *iostreams.ColorScheme, run Run, ago, prNumber string, attempt uint64)
pkg/cmd/run/shared/presentation.go:10
↓ 2 callersMethodRepo
Repo is the repository of the project item. It is only valid for issues and pull requests.
pkg/cmd/project/shared/queries/queries.go:652
↓ 2 callersFunctionRepoExists
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:1673
↓ 2 callersFunctionRepoMilestones
RepoMilestones fetches milestones in a repository
api/queries_repo.go:1461
↓ 2 callersMethodRepoOwner
RepoOwner is the login name of the owner
api/queries_repo.go:252
↓ 2 callersMethodRepository
Repository returns a ghrepo.Interface pinned to github.com so that GHES users install from github.com rather than their enterprise host.
pkg/extensions/official.go:19
↓ 2 callersFunctionRepositoryReadme
(client *http.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:26
↓ 2 callersFunctionRequestReviewsByLogin
RequestReviewsByLogin sets requested reviewers on a pull request using the GraphQL mutation. This mutation replaces existing reviewers with the provid
api/queries_pr_review.go:358
↓ 2 callersFunctionResolveFieldByID
ResolveFieldByID finds the project field whose node ID matches id, validating it against the fields returned with the project so an unknown ID fails w
pkg/cmd/project/shared/queries/resolve_fields.go:97
↓ 2 callersFunctionResolveSingleSelectOptionID
ResolveSingleSelectOptionID resolves optionName to its option ID on a single-select field. It returns a *WrongFieldTypeError if the field is not a sin
pkg/cmd/project/shared/queries/resolve.go:82
↓ 2 callersMethodResolvedRemote
()
context/remote.go:51
↓ 2 callersFunctionRulesetSource
Returns the source of the ruleset in the format "owner/name (repo)" or "owner (org)"
pkg/cmd/ruleset/shared/shared.go:57
↓ 2 callersFunctionSSHKeyUpload
Uploads the provided SSH key. Returns true if the key was uploaded, false if it was not.
pkg/cmd/ssh-key/add/http.go:18
↓ 2 callersMethodScopes
()
pkg/cmd/auth/shared/git_credential.go:72
← previousnext →1,101–1,200 of 5,846, ranked by callers