MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions5,909 in github.com/cli/cli

↓ 31 callersFunctionNewMockPrompter
(t *testing.T)
internal/prompter/test.go:12
↓ 31 callersMethodWait
()
pkg/cmd/extension/browse/browse.go:101
↓ 30 callersFunctionNoSuchPromptErr
(prompt string)
internal/prompter/test.go:171
↓ 30 callersFunctionStringEnumFlag
StringEnumFlag defines a new string flag that only allows values listed in options.
pkg/cmdutil/flags.go:28
↓ 29 callersFunctionFileResponse
(filename string)
pkg/httpmock/stub.go:191
↓ 29 callersFunctionNewTestHandler
()
pkg/cmd/attestation/io/handler.go:27
↓ 28 callersMethodMuted
(t string)
pkg/iostreams/color.go:71
↓ 27 callersMethodSuccessIconWithColor
(colo func(string) string)
pkg/iostreams/color.go:196
↓ 27 callersFunctionnewTestClient
(reg *httpmock.Registry)
api/client_test.go:17
↓ 26 callersMethodEmpty
Empty reports whether the content is empty, for callers that branch on presence without needing the bytes.
pkg/iostreams/untrusted.go:55
↓ 26 callersMethodOpen
(key string)
pkg/cmd/run/view/view.go:67
↓ 25 callersMethodDo
(*http.Request)
pkg/cmd/release/shared/upload.go:24
↓ 25 callersMethodDone
()
pkg/cmd/extension/browse/browse.go:100
↓ 25 callersMethodFailureIcon
()
pkg/iostreams/color.go:204
↓ 25 callersMethodRemove
(name string)
pkg/extensions/extension.go:37
↓ 25 callersMethodStartProgressIndicatorWithLabel
(s string)
internal/codespaces/codespaces.go:46
↓ 25 callersFunctionWithHeader
(responder Responder, header string, value string)
pkg/httpmock/stub.go:145
↓ 24 callersMethodError
()
pkg/cmd/config/set/set.go:104
↓ 24 callersFunctionPluralize
(num int, thing string)
internal/text/text.go:42
↓ 24 callersFunctionRESTPrefix
(hostname string)
internal/ghinstance/host.go:59
↓ 24 callersMethodTerminalWidth
TerminalWidth returns the width of the terminal that controls the process
pkg/iostreams/iostreams.go:425
↓ 23 callersFunctionNormalizeRelativePath
(posixPath string)
pkg/cmd/attestation/test/path.go:8
↓ 22 callersFunctionAddFormatFlags
(cmd *cobra.Command, exportTarget *Exporter)
pkg/cmdutil/json_flags.go:146
↓ 22 callersMethodFind
(opts FindOptions)
pkg/cmd/pr/shared/finder.go:30
↓ 22 callersFunctionNewStringSet
()
pkg/set/string_set.go:10
↓ 22 callersMethodSetFields
(fields []string)
pkg/cmdutil/json_flags.go:218
↓ 21 callersFunctionDisableAuthCheck
(cmd *cobra.Command)
pkg/cmdutil/auth_check.go:13
↓ 21 callersFunctionNewCachedHTTPClient
(httpClient *http.Client, ttl time.Duration)
api/http_client.go:133
↓ 21 callersFunctionQueryMatcher
(method string, path string, query url.Values)
pkg/httpmock/stub.go:91
↓ 21 callersMethodRed
(t string)
pkg/iostreams/color.go:96
↓ 21 callersMethodToSlice
()
pkg/cmd/status/status.go:169
↓ 21 callersMethodYellow
(t string)
pkg/iostreams/color.go:107
↓ 21 callersMethodfromEnv
()
acceptance/acceptance_test.go:570
↓ 21 callersFunctiontestScriptParamsFor
(tsEnv testScriptEnv, command string)
acceptance/acceptance_test.go:250
↓ 20 callersFunctionGenerateRepoURL
(repo Interface, p string, args ...interface{})
internal/ghrepo/repo.go:85
↓ 20 callersFunctioncreateCommandContext
(t *testing.T, exitStatus int, stdout, stderr string)
git/client_test.go:2139
↓ 20 callersFunctionrunEditItem
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:225
↓ 19 callersMethodError
()
internal/skills/discovery/discovery.go:339
↓ 19 callersMethodFields
()
pkg/cmdutil/json_flags.go:199
↓ 19 callersMethodLogin
(string, string, string, string, bool)
pkg/cmd/auth/shared/login_flow.go:26
↓ 19 callersFunctionNew
(f *cmdutil.Factory)
pkg/cmd/project/shared/client/client.go:10
↓ 19 callersMethodNewOwner
NewOwner creates a project Owner If canPrompt is false, login is required as we cannot prompt for it. If login is not empty, it is used to lookup the
pkg/cmd/project/shared/queries/queries.go:1446
↓ 19 callersMethodRemotes
()
pkg/cmd/extension/git.go:17
↓ 19 callersMethodWrite
Write persists modifications to the configuration.
internal/gh/gh.go:79
↓ 18 callersMethodAddTimeField
AddTimeField in TTY mode displays the fuzzy time difference between now and t. In non-TTY mode it just displays t with the time.RFC3339 format.
internal/tableprinter/table_printer.go:26
↓ 18 callersMethodAddValues
(values []string)
pkg/set/string_set.go:25
↓ 18 callersMethodCopy
Copy copies files between the local and remote file systems. The mechanics are similar to 'ssh' but using 'scp'.
pkg/cmd/codespace/ssh.go:760
↓ 18 callersFunctionCurrentLoginName
(client *Client, hostname string)
api/queries_user.go:7
↓ 18 callersMethodError
()
acceptance/acceptance_test.go:555
↓ 17 callersMethodExportData
([]string)
pkg/cmd/project/shared/queries/queries.go:1852
↓ 17 callersMethodMigrate
(m gh.Migration)
internal/config/config.go:182
↓ 17 callersMethodReplace
(handle string)
pkg/cmd/pr/shared/params.go:310
↓ 17 callersFunctionReplaceTripper
Replace http.Client transport layer with registry so all requests get recorded.
pkg/httpmock/registry.go:14
↓ 17 callersMethodVerify
(t _testing, url string)
internal/browser/stub.go:24
↓ 17 callersMethodlist
(includeMetadata bool)
pkg/cmd/extension/manager.go:150
↓ 16 callersMethodCyan
(t string)
pkg/iostreams/color.go:163
↓ 16 callersMethodExclude
(t *testing.T, m Matcher)
pkg/httpmock/registry.go:32
↓ 16 callersMethodInput
(prompt string, defaultValue string)
pkg/cmd/pr/shared/survey.go:39
↓ 16 callersFunctionNewFinder
(factory *cmdutil.Factory)
pkg/cmd/pr/shared/finder.go:58
↓ 16 callersFunctionNewMockConfigFromString
NewMockConfigFromString returns a mock config populated from cfgString, for tests that need to stub config behaviour by assigning to the mock's functi
internal/config/test.go:31
↓ 16 callersFunctionNewMockFinder
(selector string, pr *api.PullRequest, repo ghrepo.Interface)
pkg/cmd/pr/shared/finder.go:624
↓ 16 callersMethodNewProject
NewProject creates a project based on the owner and project number if canPrompt is false, number is required as we cannot prompt for it if number is 0
pkg/cmd/project/shared/queries/queries.go:1492
↓ 16 callersFunctionReadFile
(filename string, stdin io.ReadCloser)
pkg/cmdutil/file_input.go:8
↓ 16 callersMethodTerminalTheme
TerminalTheme returns "light", "dark", or "none" depending on the background color of the terminal.
pkg/iostreams/iostreams.go:144
↓ 16 callersMethoddo
do executes the given request and returns the response. It creates an opentracing span to track the length of the request.
internal/codespaces/api/api.go:1278
↓ 16 callersMethodsetHeaders
setHeaders sets the required headers for the API.
internal/codespaces/api/api.go:1293
↓ 15 callersMethodConfirm
(prompt string, defaultValue bool)
pkg/cmd/pr/shared/survey.go:42
↓ 15 callersMethodGreen
(t string)
pkg/iostreams/color.go:118
↓ 15 callersMethodName
()
pkg/extensions/extension.go:19
↓ 15 callersMethodPrintln
Println writes the arguments to the stderr writer with a newline at the end.
pkg/cmd/attestation/io/handler.go:45
↓ 15 callersFunctionRender
(text string, opts ...glamour.TermRendererOption)
pkg/markdown/markdown.go:38
↓ 15 callersFunctionWithTheme
(theme string)
pkg/markdown/markdown.go:30
↓ 15 callersFunctionWithWrap
WithWrap is a rendering option that set the character limit for soft wrapping the markdown rendering. There is a max limit of 120 characters, unless t
pkg/markdown/markdown.go:19
↓ 15 callersFunctionkeyringServiceName
(hostname string)
internal/config/config.go:514
↓ 15 callersFunctionnewTestDiscussionClient
(reg *httpmock.Registry)
pkg/cmd/discussion/client/client_test.go:17
↓ 15 callersFunctionrunList
(config listConfig)
pkg/cmd/project/list/list.go:78
↓ 15 callersFunctionstubPR
repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch" prHead: "headOwner/headRepo:headBranch"
pkg/cmd/pr/checkout/checkout_test.go:124
↓ 14 callersMethodClone
(cloneURL string, args []string)
pkg/cmd/extension/git.go:11
↓ 14 callersMethodConfirm
(string, bool)
pkg/cmd/repo/edit/edit.go:31
↓ 14 callersMethodErr
()
internal/codespaces/connection/tunnels_api_server_mock.go:288
↓ 14 callersMethodError
()
internal/run/run.go:79
↓ 14 callersFunctionExactArgs
(n int, msg string)
pkg/cmdutil/args.go:24
↓ 14 callersFunctionNewIsolatedTestConfig
NewIsolatedTestConfig returns the real config implementation, built from cfgString and isolated from the machine running the tests. Pass "" for a conf
internal/config/test.go:126
↓ 14 callersFunctionRemoveExcessiveWhitespace
RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed.
internal/text/text.go:30
↓ 14 callersFunctionapiRun
(opts *ApiOptions)
pkg/cmd/api/api.go:307
↓ 14 callersFunctioninitFakeHTTP
()
pkg/cmd/pr/status/status_test.go:89
↓ 13 callersMethodGetOrDefault
(hostname, key string)
internal/config/config.go:69
↓ 13 callersMethodGitProtocol
GitProtocol returns the configured git protocol, optionally scoped by host.
internal/gh/gh.go:49
↓ 13 callersFunctionNewPortForwarder
NewPortForwarder returns a new PortForwarder for the specified codespace.
internal/codespaces/portforwarder/port_forwarder.go:55
↓ 13 callersFunctionParse
Parse extracts YAML frontmatter from a SKILL.md file. Frontmatter is delimited by --- on its own lines.
internal/skills/frontmatter/frontmatter.go:31
↓ 13 callersFunctionRESTPayload
(responseStatus int, responseBody string, cb func(payload map[string]interface{}))
pkg/httpmock/stub.go:201
↓ 13 callersMethodRESTWithNext
(hostname, method, p string, body io.Reader, data interface{})
pkg/cmd/attestation/api/client.go:58
↓ 13 callersMethodRunWithProgress
(label string, run func() error)
pkg/cmd/codespace/common.go:63
↓ 13 callersFunctionnewTestHuhPrompter
--- Test harness ---
internal/prompter/huh_prompter_test.go:150
↓ 13 callersFunctionrequireKeyWithValue
(t *testing.T, cfg *ghConfig.Config, keys []string, value string)
internal/config/auth_config_test.go:669
↓ 13 callersFunctionrunCommand
** LEGACY TESTS **/
pkg/cmd/pr/checkout/checkout_test.go:858
↓ 13 callersFunctionrunCommand
(rt http.RoundTripper, branch string, isTTY bool, cli string)
pkg/cmd/pr/status/status_test.go:26
↓ 13 callersFunctionstubExtension
(path string)
pkg/cmd/extension/manager_test.go:1516
↓ 12 callersMethodAdd
Add adds a new alias with the specified expansion.
internal/gh/gh.go:179
↓ 12 callersFunctionAddCodespaceSelector
AddCodespaceSelector adds persistent flags for selecting a codespace to the given command and returns a CodespaceSelector which applies them
pkg/cmd/codespace/codespace_selector.go:24
← previousnext →101–200 of 5,909, ranked by callers