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
↓ 5 callers
Function
sp
(v string)
pkg/cmd/repo/edit/edit_test.go:998
↓ 5 callers
Function
stubExtensionUpdate
(updatePath string)
pkg/cmd/extension/manager_test.go:1531
↓ 5 callers
Function
validateName
validateName checks if a skill name is safe for use (filesystem-safe).
internal/skills/discovery/discovery.go:1089
↓ 5 callers
Function
verifyNotifyCodespaceOfClientActivity
Test that the RPC invoker notifies the codespace of client activity on connection
internal/codespaces/rpc/invoker_test.go:90
↓ 5 callers
Function
verifyRun
(config *VerifyConfig)
pkg/cmd/release/verify/verify.go:118
↓ 5 callers
Method
warnf
(format string, args ...interface{})
pkg/cmd/pr/merge/merge.go:491
↓ 5 callers
Function
wrapInternal
wrapInternal wraps an error with a prefix as an Internal error. The original error cause is accessible by github.com/pkg/errors.Cause.
internal/barista/observability/telemetry.twirp.go:831
↓ 5 callers
Method
writeError
writeError writes an HTTP response with a valid Twirp error format, and triggers hooks. If err is not a twirp.Error, it will get wrapped with twirp.In
internal/barista/observability/telemetry.twirp.go:266
↓ 4 callers
Function
AccessControlEntriesToVisibility
AccessControlEntriesToVisibility converts the access control entries used by Dev Tunnels to a friendly visibility value.
internal/codespaces/portforwarder/port_forwarder.go:362
↓ 4 callers
Method
AddRemote
(ctx context.Context, name, urlStr string, trackingBranches []string)
git/client.go:783
↓ 4 callers
Method
All
All returns a map of all aliases to their corresponding expansions.
internal/gh/gh.go:185
↓ 4 callers
Function
AuthTokenWriteable
(authCfg gh.AuthConfig, hostname string)
pkg/cmd/auth/shared/writeable.go:15
↓ 4 callers
Method
AuthorLogin
()
pkg/cmd/pr/shared/comments.go:17
↓ 4 callers
Method
Boldf
(t string, args ...interface{})
pkg/iostreams/color.go:67
↓ 4 callers
Function
BuildAliasList
(cmd *cobra.Command, aliases []string)
pkg/cmd/root/help.go:315
↓ 4 callers
Function
BuildRepoURL
BuildRepoURL returns the canonical repository URL stored in skill metadata.
internal/skills/source/source.go:15
↓ 4 callers
Method
Choose
()
pkg/cmd/pr/shared/templates.go:184
↓ 4 callers
Method
Clean
Clean cleans the file path option values
pkg/cmd/attestation/verify/options.go:50
↓ 4 callers
Method
Code
(Query)
pkg/search/searcher.go:31
↓ 4 callers
Method
CurrentUserComments
()
pkg/cmd/pr/shared/commentable.go:34
↓ 4 callers
Function
Default
Default returns the host name of the default GitHub instance.
internal/ghinstance/host.go:21
↓ 4 callers
Function
Delete
Delete secret from keyring.
internal/keyring/keyring.go:62
↓ 4 callers
Method
Description
()
pkg/cmd/extension/browse/browse.go:81
↓ 4 callers
Method
DetailedItems
()
pkg/cmd/project/shared/queries/queries.go:261
↓ 4 callers
Method
Digest
Digest returns the artifact's digest
pkg/cmd/attestation/artifact/artifact.go:77
↓ 4 callers
Function
DiscoverSkillsWithOptions
DiscoverSkillsWithOptions finds all skills in a repository at the given commit SHA, with configurable discovery behavior.
internal/skills/discovery/discovery.go:575
↓ 4 callers
Method
Dispatch
(args []string, stdin io.Reader, stdout, stderr io.Writer)
pkg/extensions/extension.go:38
↓ 4 callers
Method
Edit
(string, string)
pkg/cmd/pr/merge/merge.go:23
↓ 4 callers
Function
EditorName
(editorCommand string)
pkg/surveyext/editor.go:162
↓ 4 callers
Method
Executable
()
pkg/cmd/codespace/common.go:28
↓ 4 callers
Function
FetchRepository
(client *Client, repo ghrepo.Interface, fields []string)
api/queries_repo.go:286
↓ 4 callers
Function
FilterAttestations
(predicateType string, attestations []*Attestation)
pkg/cmd/attestation/api/attestation.go:27
↓ 4 callers
Method
FindSelected
()
pkg/cmd/extension/browse/browse.go:276
↓ 4 callers
Function
FlagErrorWrap
FlagErrorWrap returns a new FlagError that wraps the specified error.
pkg/cmdutil/errors.go:17
↓ 4 callers
Method
GetByDigest
GetByDigest fetches the attestation by digest and either owner or repo depending on which is provided
pkg/cmd/attestation/api/client.go:89
↓ 4 callers
Method
GetByNumber
GetByNumber returns a single discussion by its number.
pkg/cmd/discussion/client/client.go:31
↓ 4 callers
Method
GetCodespace
(ctx context.Context, name string, includeConnection bool)
internal/codespaces/codespaces.go:40
↓ 4 callers
Function
GetGist
(client *http.Client, hostname, gistID string)
pkg/cmd/gist/shared/shared.go:64
↓ 4 callers
Method
GetImageDigest
where name is formed like ghcr.io/github/my-image-repo
pkg/cmd/attestation/artifact/oci/client.go:49
↓ 4 callers
Function
GetSecretApp
(app string, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:66
↓ 4 callers
Function
GetSecretEntity
(orgName, envName string, userSecrets bool)
pkg/cmd/secret/shared/shared.go:46
↓ 4 callers
Function
GetWorkflows
(client *api.Client, repo ghrepo.Interface, limit int)
pkg/cmd/workflow/shared/shared.go:57
↓ 4 callers
Method
GitDir
(ctx context.Context)
git/client.go:675
↓ 4 callers
Function
GitHubTUFOptions
(tufMetadataDir o.Option[string], hc *http.Client)
pkg/cmd/attestation/verification/tuf.go:48
↓ 4 callers
Method
HasMetadata
()
pkg/cmd/pr/shared/state.go:55
↓ 4 callers
Function
Install
Install fetches and writes skills to the target directory.
internal/skills/installer/installer.go:56
↓ 4 callers
Function
IsAuthCheckEnabled
(cmd *cobra.Command)
pkg/cmdutil/auth_check.go:41
↓ 4 callers
Function
IsFailureState
(c Conclusion)
pkg/cmd/run/shared/shared.go:318
↓ 4 callers
Method
IsHiddenDirConvention
IsHiddenDirConvention returns true if the skill was discovered in a hidden (dot-prefixed) directory such as .claude/skills/ or .agents/skills/.
internal/skills/discovery/discovery.go:90
↓ 4 callers
Method
IsOurs
IsOurs returns true if the helper command is the GitHub CLI credential helper
pkg/cmd/auth/shared/gitcredentials/helper_config.go:78
↓ 4 callers
Method
IsSome
IsSome returns true if the [Option] is a [Some] variant.
pkg/option/option.go:111
↓ 4 callers
Function
IsSupportedSecretEntity
(app App, entity SecretEntity)
pkg/cmd/secret/shared/shared.go:86
↓ 4 callers
Method
LatestVersion
()
pkg/extensions/extension.go:23
↓ 4 callers
Method
ListPorts
(ctx context.Context)
internal/codespaces/portforwarder/port_forwarder.go:47
↓ 4 callers
Method
Matches
Matches checks whether the provided baseBranchName and headRef match the refs. It is used to determine whether Pull Requests returned from the API
pkg/cmd/pr/shared/find_refs_resolution.go:106
↓ 4 callers
Method
MembersToIDs
(names []string)
api/queries_repo.go:751
↓ 4 callers
Function
MetadataSurvey
(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher RepoMetadataFetcher, state *IssueMetada
pkg/cmd/pr/shared/survey.go:157
↓ 4 callers
Function
MockInit
()
internal/keyring/keyring.go:76
↓ 4 callers
Function
NewAssignableBot
(id, login string)
api/queries_repo.go:1208
↓ 4 callers
Function
NewClient
(httpClient *http.Client, hostname string, ios *iostreams.IOStreams)
pkg/cmd/project/shared/queries/queries.go:19
↓ 4 callers
Function
NewCmdExtension
(io *iostreams.IOStreams, em extensions.ExtensionManager, ext extensions.Extension, checkExtensionReleaseInfo
pkg/cmd/root/extension.go:22
↓ 4 callers
Function
NewCmdRoot
(f *cmdutil.Factory, telemetry ghtelemetry.CommandRecorder, version, buildDate string)
pkg/cmd/root/root.go:64
↓ 4 callers
Function
NewCmdUpdate
NewCmdUpdate creates the "skills update" command.
pkg/cmd/skills/update/update.go:66
↓ 4 callers
Function
NewCodespaceConnection
NewCodespaceConnection initializes a connection to a codespace. This connections allows for port forwarding which enables the use of most features of
internal/codespaces/connection/connection.go:42
↓ 4 callers
Function
NewDigestedArtifact
(client oci.Client, reference, digestAlg string)
pkg/cmd/attestation/artifact/artifact.go:64
↓ 4 callers
Function
NewMockHttpClient
(opts ...mockClientOpt)
internal/codespaces/connection/tunnels_api_server_mock.go:43
↓ 4 callers
Function
NewQualifiedHeadRef
NewQualifiedHeadRef creates a QualifiedHeadRef. If the empty string is provided for the owner, it will be treated as None.
pkg/cmd/pr/shared/find_refs_resolution.go:32
↓ 4 callers
Function
NormalizeRepoName
NormalizeRepoName takes in the repo name the user inputted and normalizes it using the same logic as GitHub (GitHub.com/new)
pkg/cmd/repo/shared/repo.go:11
↓ 4 callers
Function
OnGetByDigestFailure
(params FetchParams)
pkg/cmd/attestation/api/mock_client.go:55
↓ 4 callers
Method
Owner
()
pkg/cmd/extension/extension.go:182
↓ 4 callers
Method
Password
(string)
pkg/cmd/auth/shared/prompt.go:9
↓ 4 callers
Method
ProjectsTitlesToIDs
ProjectsTitlesToIDs returns two arrays: - the first contains IDs of projects V1 - the second contains IDs of projects V2 - if neither project V1 or pr
api/queries_repo.go:828
↓ 4 callers
Function
ProjectsV2IgnorableError
When querying ProjectsV2 fields we generally don't want to show the user scope errors, field does not exist errors, or authorization errors. ProjectsV
api/queries_projects_v2.go:330
↓ 4 callers
Function
PromptGists
(prompter prompter.Prompter, client *http.Client, host string, cs *iostreams.ColorScheme)
pkg/cmd/gist/shared/shared.go:228
↓ 4 callers
Function
PromptWhenAmbiguousBaseRepoFunc
(baseRepoFn baseRepoFn, ios *iostreams.IOStreams, prompter prompter.Prompter)
pkg/cmd/secret/shared/base_repo.go:24
↓ 4 callers
Method
Pull
(remote, branch string)
pkg/cmd/extension/git.go:16
↓ 4 callers
Method
Push
(ctx context.Context, remote string, ref string, mods ...CommandModifier)
git/client.go:848
↓ 4 callers
Method
ReadBranchConfig
(ctx context.Context, branchName string)
pkg/cmd/pr/shared/finder.go:39
↓ 4 callers
Method
RebuildContainer
(ctx context.Context, full bool)
internal/codespaces/rpc/invoker.go:46
↓ 4 callers
Method
ReplaceSlice
(handles []string)
pkg/cmd/pr/shared/params.go:317
↓ 4 callers
Method
ReplaceSlice
(logins []string)
pkg/cmd/pr/shared/editable.go:204
↓ 4 callers
Function
RepoGitIgnoreTemplates
RepoGitIgnoreTemplates fetches available repository gitignore templates. It uses API v3 here because gitignore template isn't supported by GraphQL.
api/queries_repo.go:1730
↓ 4 callers
Function
RepoLicenses
RepoLicenses fetches available repository licenses. It uses API v3 because licenses are not supported by GraphQL.
api/queries_repo.go:1698
↓ 4 callers
Method
Repositories
(Query)
pkg/search/searcher.go:33
↓ 4 callers
Function
RequireNoAmbiguityBaseRepoFunc
RequireNoAmbiguityBaseRepoFunc returns a function to resolve the base repo, ensuring that there was only one option, regardless of whether the base re
pkg/cmd/secret/shared/base_repo.go:58
↓ 4 callers
Function
ResolveHomeDir
ResolveHomeDir returns the user's home directory, or "" on error.
internal/skills/installer/installer.go:329
↓ 4 callers
Function
ResolveRef
ResolveRef determines the git ref to use for a given owner/repo. Priority: explicit version > latest release tag > default branch.
internal/skills/discovery/discovery.go:207
↓ 4 callers
Function
ResolveWorkflow
(p iprompter, io *iostreams.IOStreams, client *api.Client, repo ghrepo.Interface, prompt bool, workflowSelecto
pkg/cmd/workflow/shared/shared.go:200
↓ 4 callers
Method
RoundTrip
(req *http.Request)
api/http_client.go:193
↓ 4 callers
Function
Serialize
Serialize writes a frontmatter map and body back to a SKILL.md string.
internal/skills/frontmatter/frontmatter.go:130
↓ 4 callers
Method
SetAlternateScreenBufferEnabled
(enabled bool)
pkg/iostreams/iostreams.go:411
↓ 4 callers
Method
Skip
()
internal/prompter/multi_select_with_search.go:396
↓ 4 callers
Method
SshDir
()
pkg/ssh/ssh_keys.go:91
↓ 4 callers
Method
Stdio
()
pkg/surveyext/editor_test.go:242
↓ 4 callers
Method
StopAlternateScreenBuffer
()
pkg/iostreams/iostreams.go:401
↓ 4 callers
Function
TenantName
TenantName extracts the tenant name from tenancy host name and reports whether it found the tenant name.
internal/ghinstance/host.go:27
↓ 4 callers
Method
Type
()
pkg/cmdutil/flags.go:119
↓ 4 callers
Method
UnwrapOr
UnwrapOr returns the underlying value of a [Some] variant, or the provided value on a [None] variant.
pkg/option/option.go:81
↓ 4 callers
Method
UnwrapOrZero
UnwrapOrZero returns the underlying value of a [Some] variant, or the zero value on a [None] variant.
pkg/option/option.go:101
↓ 4 callers
Function
UpdateProjectV2Items
UpdateProjectV2Items uses the addProjectV2ItemById and the deleteProjectV2Item mutations to add and delete items from projects. The addProjectItems an
api/queries_projects_v2.go:35
← previous
next →
501–600 of 5,846, ranked by callers