Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
5,846 in github.com/cli/cli
⨍
Functions
5,846
◇
Types & classes
1,298
↓ 2 callers
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/issue/list/list.go:48
↓ 2 callers
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/repo/list/list.go:42
↓ 2 callers
Function
NewCmdList
(f *cmdutil.Factory, runF func(*ListOptions) error)
pkg/cmd/secret/list/list.go:50
↓ 2 callers
Function
NewCmdMerge
(f *cmdutil.Factory, runF func(*MergeOptions) error)
pkg/cmd/pr/merge/merge.go:60
↓ 2 callers
Function
NewCmdOfficialExtensionStub
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 callers
Function
NewCmdPreview
NewCmdPreview creates the "skills preview" command.
pkg/cmd/skills/preview/preview.go:44
↓ 2 callers
Function
NewCmdPublish
NewCmdPublish creates the "skills publish" command.
pkg/cmd/skills/publish/publish.go:91
↓ 2 callers
Function
NewCmdReady
(f *cmdutil.Factory, runF func(*ReadyOptions) error)
pkg/cmd/pr/ready/ready.go:26
↓ 2 callers
Function
NewCmdReview
(f *cmdutil.Factory, runF func(*ReviewOptions) error)
pkg/cmd/pr/review/review.go:34
↓ 2 callers
Function
NewCmdSearch
NewCmdSearch creates the "skills search" command.
pkg/cmd/skills/search/search.go:68
↓ 2 callers
Function
NewCmdSet
(f *cmdutil.Factory, runF func(*SetOptions) error)
pkg/cmd/secret/set/set.go:48
↓ 2 callers
Function
NewCmdTransfer
(f *cmdutil.Factory, runF func(*TransferOptions) error)
pkg/cmd/issue/transfer/transfer.go:27
↓ 2 callers
Function
NewCmdView
(f *cmdutil.Factory, runF func(*ViewOptions) error)
pkg/cmd/pr/view/view.go:40
↓ 2 callers
Function
NewConfig
()
internal/config/config.go:40
↓ 2 callers
Function
NewCopilotReplacer
NewCopilotReplacer creates a replacer for assignee @copilot references.
pkg/cmd/pr/shared/params.go:339
↓ 2 callers
Function
NewDigestedArtifactForRelease
(digest string, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:57
↓ 2 callers
Function
NewDiscussionClient
NewDiscussionClient creates a DiscussionClient backed by the given HTTP client.
pkg/cmd/discussion/client/client.go:68
↓ 2 callers
Function
NewDownloadCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/download/download.go:19
↓ 2 callers
Function
NewExternalHTTPClient
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 callers
Function
NewInspectCmd
(f *cmdutil.Factory, runF func(*Options) error)
pkg/cmd/attestation/inspect/inspect.go:28
↓ 2 callers
Function
NewLogRenderer
()
pkg/cmd/agent-task/shared/log.go:25
↓ 2 callers
Function
NewMeReplacer
(apiClient *api.Client, hostname string)
pkg/cmd/pr/shared/params.go:291
↓ 2 callers
Function
NewRegexpWriter
(out io.Writer, re *regexp.Regexp, repl string)
pkg/cmd/pr/create/regexp_writer.go:9
↓ 2 callers
Function
NewRemoteCommand
NewRemoteCommand returns an exec.Cmd that will securely run a shell command on the remote machine.
internal/codespaces/ssh.go:53
↓ 2 callers
Function
NewReviewerBot
(login string)
api/queries_pr_review.go:212
↓ 2 callers
Function
NewReviewerTeam
NewReviewerTeam creates a new ReviewerTeam.
api/queries_pr_review.go:231
↓ 2 callers
Function
NewReviewerUser
(login, name string)
api/queries_pr_review.go:199
↓ 2 callers
Function
NewTelemetryAPIServer
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 callers
Function
NewWithWriter
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 callers
Function
NilStringFlag
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 callers
Function
NoRulesetsFoundError
(orgOption string, repoI ghrepo.Interface, includeParents bool)
pkg/cmd/ruleset/shared/shared.go:114
↓ 2 callers
Method
NotifyCodespaceOfClientActivity
(ctx context.Context, in *NotifyCodespaceOfClientActivityRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:25
↓ 2 callers
Method
Number
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 callers
Method
OnRESTWithNextSuccessHelper
(hostname, method, p string, body io.Reader, data interface{}, hasNext bool)
pkg/cmd/attestation/api/mock_githubApiClient_test.go:79
↓ 2 callers
Function
OrganizationTeam
OrganizationTeam fetch the team in an organization with the given slug
api/queries_org.go:52
↓ 2 callers
Method
Owner
()
pkg/extensions/extension.go:28
↓ 2 callers
Method
OwnerIDAndType
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 callers
Method
OwnerType
()
pkg/cmd/project/shared/queries/queries.go:291
↓ 2 callers
Method
OwnerType
()
pkg/cmd/project/shared/queries/queries.go:325
↓ 2 callers
Method
PageDown
()
pkg/cmd/extension/browse/browse.go:252
↓ 2 callers
Method
PageUp
()
pkg/cmd/extension/browse/browse.go:256
↓ 2 callers
Method
Pager
Pager returns the configured Pager, optionally scoped by host.
internal/gh/gh.go:53
↓ 2 callers
Function
ParseDiscussionArg
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 callers
Function
ParsePushDefault
(s string)
git/client.go:456
↓ 2 callers
Function
ParseRulesForDisplay
(rules []RulesetRule)
pkg/cmd/ruleset/shared/shared.go:70
↓ 2 callers
Function
ParseTelemetryState
ParseTelemetryState determines the telemetry state based on environment variables and configuration values. The GH_TELEMETRY environment variable take
internal/telemetry/telemetry.go:106
↓ 2 callers
Function
PartitionHiddenDirSkills
PartitionHiddenDirSkills splits skills into standard and hidden-dir groups.
internal/skills/discovery/discovery.go:113
↓ 2 callers
Method
Password
Password prompts the user to enter a password.
internal/prompter/prompter.go:36
↓ 2 callers
Method
Path
()
pkg/cmd/extension/extension.go:47
↓ 2 callers
Method
PathFromRoot
Show current directory relative to the top-level directory of repository.
git/client.go:684
↓ 2 callers
Function
PrStateWithDraft
(pr *api.PullRequest)
pkg/cmd/pr/shared/display.go:20
↓ 2 callers
Method
Preface
()
pkg/jsoncolor/jsoncolor.go:20
↓ 2 callers
Method
PreferEditorPrompt
PreferEditorPrompt returns the configured editor-based prompt, optionally scoped by host.
internal/gh/gh.go:57
↓ 2 callers
Function
PreserveInput
(io *iostreams.IOStreams, state *IssueMetadataState, createErr *error)
pkg/cmd/pr/shared/preserve.go:12
↓ 2 callers
Method
Project
()
pkg/cmd/project/shared/queries/queries.go:761
↓ 2 callers
Method
ProjectItemIDByURL
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 callers
Method
ProjectNames
()
api/queries_issue.go:247
↓ 2 callers
Function
ProjectState
(project queries.Project)
pkg/cmd/project/shared/format/display.go:7
↓ 2 callers
Method
ProjectTitles
()
api/queries_issue.go:255
↓ 2 callers
Function
ProjectTitlesToPaths
(client *Client, repo ghrepo.Interface, titles []string, projectsV1Support gh.ProjectsV1Support)
api/queries_repo.go:872
↓ 2 callers
Function
ProjectsV2ItemsForIssue
ProjectsV2ItemsForIssue fetches all ProjectItems for an issue.
api/queries_projects_v2.go:65
↓ 2 callers
Function
ProjectsV2ItemsForPullRequest
ProjectsV2ItemsForPullRequest fetches all ProjectItems for a pull request.
api/queries_projects_v2.go:136
↓ 2 callers
Function
PullRequestClose
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:742
↓ 2 callers
Function
PullRequestForRun
(client *api.Client, repo ghrepo.Interface, run Run)
pkg/cmd/run/shared/shared.go:619
↓ 2 callers
Function
PullRequestReopen
(httpClient *http.Client, repo ghrepo.Interface, prID string)
api/queries_pr.go:761
↓ 2 callers
Method
QualifiedHeadRef
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 callers
Function
QueryHasStateClause
(searchQuery string)
pkg/cmd/pr/shared/params.go:269
↓ 2 callers
Method
RawBytes
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 callers
Function
ReactionGroupList
(rgs api.ReactionGroups)
pkg/cmd/pr/shared/reaction_groups.go:10
↓ 2 callers
Method
Read
(p []byte)
pkg/cmd/api/pagination_test.go:271
↓ 2 callers
Method
Read
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 callers
Method
Rebuild
(ctx context.Context, selector *CodespaceSelector, full bool)
pkg/cmd/codespace/rebuild.go:43
↓ 2 callers
Method
RebuildContainerAsync
(ctx context.Context, in *RebuildContainerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/codespace/codespace_host_service.v1_grpc.pb.go:26
↓ 2 callers
Function
RecordInstall
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 callers
Function
RecordTelemetry
(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder)
pkg/cmdutil/telemetry.go:12
↓ 2 callers
Function
RecordTelemetryForSubcommands
(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder)
pkg/cmdutil/telemetry.go:43
↓ 2 callers
Method
Redf
(t string, args ...interface{})
pkg/iostreams/color.go:103
↓ 2 callers
Method
Refresh
()
pkg/cmd/extension/browse/browse.go:240
↓ 2 callers
Method
RefreshScreen
()
pkg/iostreams/iostreams.go:415
↓ 2 callers
Method
RegisterConfirmDeletion
(prompt string, stub func(string) error)
internal/prompter/test.go:114
↓ 2 callers
Method
ReleaseFeatures
()
internal/featuredetection/feature_detection.go:22
↓ 2 callers
Method
Remotes
(ctx context.Context)
git/client.go:164
↓ 2 callers
Method
RemoveSelected
()
pkg/cmd/extension/browse/browse.go:226
↓ 2 callers
Function
RenameRepo
RenameRepo renames the repository on GitHub and returns the renamed repository
api/queries_repo.go:642
↓ 2 callers
Function
RenderAnnotations
(cs *iostreams.ColorScheme, annotations []Annotation)
pkg/cmd/run/shared/presentation.go:92
↓ 2 callers
Function
RenderJobsCompact
(cs *iostreams.ColorScheme, jobs []Job)
pkg/cmd/run/shared/presentation.go:50
↓ 2 callers
Function
RenderRunHeader
(cs *iostreams.ColorScheme, run Run, ago, prNumber string, attempt uint64)
pkg/cmd/run/shared/presentation.go:10
↓ 2 callers
Method
Repo
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 callers
Function
RepoExists
(client *Client, repo ghrepo.Interface)
api/queries_repo.go:1673
↓ 2 callers
Function
RepoMilestones
RepoMilestones fetches milestones in a repository
api/queries_repo.go:1461
↓ 2 callers
Method
RepoOwner
RepoOwner is the login name of the owner
api/queries_repo.go:252
↓ 2 callers
Method
Repository
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 callers
Function
RepositoryReadme
(client *http.Client, repo ghrepo.Interface, branch string)
pkg/cmd/repo/view/http.go:26
↓ 2 callers
Function
RequestReviewsByLogin
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 callers
Function
ResolveFieldByID
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 callers
Function
ResolveSingleSelectOptionID
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 callers
Method
ResolvedRemote
()
context/remote.go:51
↓ 2 callers
Function
RulesetSource
Returns the source of the ruleset in the format "owner/name (repo)" or "owner (org)"
pkg/cmd/ruleset/shared/shared.go:57
↓ 2 callers
Function
SSHKeyUpload
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 callers
Method
Scopes
()
pkg/cmd/auth/shared/git_credential.go:72
← previous
next →
1,101–1,200 of 5,846, ranked by callers