MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

↓ 35 callersFunctionDisplayURL
DisplayURL returns a copy of the string urlStr removing everything except the scheme, hostname, and path. If the scheme is not specified, "https" is a
internal/text/text.go:96
↓ 35 callersMethodMode
()
internal/safepaths/link_windows_test.go:167
↓ 35 callersMethodWrite
Write persists modifications to the configuration.
internal/gh/gh.go:87
↓ 35 callersFunctionnewTestManager
(dataDir, updateDir string, client *http.Client, gitClient gitClient, ios *iostreams.IOStreams, extraEnv ...st
pkg/cmd/extension/manager_test.go:48
↓ 35 callersFunctionrunCommand
TODO port to new style tests
pkg/cmd/pr/merge/merge_test.go:251
↓ 34 callersFunctionIsSame
IsSame compares two GitHub repositories
internal/ghrepo/repo.go:79
↓ 34 callersFunctionNoSuchPromptErr
(prompt string)
internal/prompter/test.go:171
↓ 34 callersFunctionnewBrowseModel
(opts ExtBrowseOpts, entries []extEntry)
pkg/cmd/extension/browse/model.go:108
↓ 34 callersMethodpush
push hands c to the server, or closes it once the listener is closed.
script/ghmock/tls.go:168
↓ 33 callersMethodError
()
git/errors.go:30
↓ 33 callersMethodGet
(url string)
pkg/cmd/attestation/api/client.go:63
↓ 32 callersMethodDisplayName
()
api/queries_repo.go:1165
↓ 32 callersMethodDo
Do is expected to apply any necessary changes to the config in place
internal/gh/gh.go:107
↓ 32 callersMethodError
()
pkg/cmd/secret/shared/base_repo.go:17
↓ 32 callersMethodIsDir
()
internal/safepaths/link_windows_test.go:169
↓ 32 callersFunctionStringEnumFlag
StringEnumFlag defines a new string flag that only allows values listed in options.
pkg/cmdutil/flags.go:28
↓ 32 callersMethodsetup
()
evals/src/core/executor.ts:67
↓ 31 callersMethodMuted
(t string)
pkg/iostreams/color.go:71
↓ 31 callersFunctionNewMockPrompter
(t *testing.T)
internal/prompter/test.go:12
↓ 31 callersMethodView
(repo ghrepo.Interface, id string)
pkg/cmd/repo/autolink/view/view.go:25
↓ 31 callersFunctionupdateBrowseModel
(t *testing.T, model *browseModel, msg tea.Msg)
pkg/cmd/extension/browse/model_test.go:884
↓ 30 callersMethodRequest
Request performs a REST request and returns the response for the caller to consume. See RequestWithContext for the full semantics.
api/client.go:206
↓ 30 callersMethodTitle
()
pkg/cmd/pr/shared/templates.go:121
↓ 29 callersFunctionNewTestHandler
()
pkg/cmd/attestation/io/handler.go:27
↓ 29 callersMethodSuccessIconWithColor
(colo func(string) string)
pkg/iostreams/color.go:196
↓ 28 callersFunctionFileResponse
(filename string)
pkg/httpmock/stub.go:191
↓ 28 callersFunctionPluralize
(num int, thing string)
internal/text/text.go:42
↓ 28 callersMethodSetFields
(fields []string)
pkg/cmdutil/json_flags.go:218
↓ 27 callersMethodAdd
Add adds a new alias with the specified expansion.
internal/gh/gh.go:339
↓ 27 callersFunctionJoinPathWithHostPrefix
JoinPathWithHostPrefix returns a SafeURL for the given host prefix and the path made up of the given components. It returns an error if any component
internal/safeurl/safeurl.go:64
↓ 27 callersFunctionWithHeader
(responder Responder, header string, value string)
pkg/httpmock/stub.go:145
↓ 26 callersMethodErr
()
internal/codespaces/connection/tunnels_api_server_mock.go:286
↓ 26 callersMethodFailureIcon
()
pkg/iostreams/color.go:204
↓ 25 callersMethodFind
(opts FindOptions)
pkg/cmd/pr/shared/finder.go:30
↓ 25 callersMethodStartProgressIndicatorWithLabel
(s string)
internal/codespaces/codespaces.go:46
↓ 25 callersMethodTerminalWidth
TerminalWidth returns the width of the terminal that controls the process
pkg/iostreams/iostreams.go:426
↓ 24 callersFunctionGenerateRepoURL
(repo Interface, p string, args ...any)
internal/ghrepo/repo.go:85
↓ 23 callersMethodError
()
pkg/cmd/config/set/set.go:126
↓ 23 callersMethodFields
()
pkg/cmdutil/json_flags.go:199
↓ 23 callersFunctionNormalizeRelativePath
(posixPath string)
pkg/cmd/attestation/test/path.go:8
↓ 23 callersFunctionQueryMatcher
(method string, path string, query url.Values)
pkg/httpmock/stub.go:91
↓ 23 callersFunctionRemoveExcessiveWhitespace
RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed.
internal/text/text.go:30
↓ 23 callersFunctionStatusJSONResponse
StatusJSONResponse turns the given argument into a JSON response. The argument is not meant to be a JSON string, unless it's intentional.
pkg/httpmock/stub.go:175
↓ 23 callersFunctionkeyringServiceName
(hostname string)
internal/config/config.go:746
↓ 22 callersFunctionAddFormatFlags
(cmd *cobra.Command, exportTarget *Exporter)
pkg/cmdutil/json_flags.go:146
↓ 22 callersMethodLogin
(string, string, string, string, bool)
pkg/cmd/auth/shared/login_flow.go:27
↓ 22 callersFunctionNewStringSet
()
pkg/set/string_set.go:10
↓ 22 callersMethodRemotes
()
pkg/cmd/extension/git.go:17
↓ 22 callersMethodYellow
(t string)
pkg/iostreams/color.go:107
↓ 21 callersMethodCopy
()
git/client.go:64
↓ 21 callersFunctionDisableAuthCheck
(cmd *cobra.Command)
pkg/cmdutil/auth_check.go:13
↓ 21 callersMethodError
()
acceptance/acceptance_test.go:1283
↓ 21 callersMethodExclude
(t *testing.T, m Matcher)
pkg/httpmock/registry.go:32
↓ 21 callersMethodName
()
pkg/extensions/extension.go:19
↓ 21 callersFunctionNewCachedHTTPClient
(httpClient *http.Client, ttl time.Duration)
api/http_client.go:165
↓ 21 callersMethodRed
(t string)
pkg/iostreams/color.go:96
↓ 21 callersMethodReplace
(handle string)
pkg/cmd/pr/shared/params.go:310
↓ 21 callersMethodToSlice
()
pkg/cmd/status/status.go:170
↓ 20 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
↓ 20 callersMethodError
()
script/ghmock/main.go:180
↓ 20 callersMethodExportData
([]string)
pkg/cmd/project/shared/queries/queries.go:1841
↓ 20 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:141
↓ 20 callersFunctionSet
Set secret in keyring for user.
internal/keyring/keyring.go:22
↓ 20 callersFunctionkeyPress
(r rune)
pkg/cmd/extension/browse/model_test.go:876
↓ 20 callersFunctionrunEditItem
(config editItemConfig)
pkg/cmd/project/item-edit/item_edit.go:225
↓ 19 callersMethodClone
(cloneURL string, args []string)
pkg/cmd/extension/git.go:11
↓ 19 callersMethodError
()
internal/skills/discovery/discovery.go:339
↓ 19 callersFunctionHandleHTTPError
HandleHTTPError parses a http.Response into a HTTPError. The caller is responsible to close the response body stream.
api/client.go:285
↓ 19 callersFunctionNew
(f *cmdutil.Factory)
pkg/cmd/project/shared/client/client.go:10
↓ 19 callersFunctionNewMockFinder
(selector string, pr *api.PullRequest, repo ghrepo.Interface)
pkg/cmd/pr/shared/finder.go:624
↓ 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:1439
↓ 19 callersFunctionOpenRoot
OpenRoot opens an existing directory as a rooted filesystem.
internal/safepaths/root.go:27
↓ 19 callersMethodPrintf
(fmt string, v ...any)
internal/codespaces/ssh.go:15
↓ 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 callersMethodDuration
(now time.Time)
pkg/cmd/run/shared/shared.go:121
↓ 18 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:32
↓ 18 callersFunctionReplaceTripper
Replace http.Client transport layer with registry so all requests get recorded.
pkg/httpmock/registry.go:14
↓ 18 callersMethodVerify
(t _testing, url string)
internal/browser/stub.go:24
↓ 18 callersMethodget
(hostname, key string)
internal/config/config.go:62
↓ 17 callersMethodConfirm
(prompt string, defaultValue bool)
pkg/cmd/pr/shared/survey.go:42
↓ 17 callersMethodCount
Count returns the number of supplied attachment values before validation. Absent flags count as zero; empty paths and values over the limit still coun
internal/attachments/flags.go:44
↓ 17 callersMethodCreate
(name string, tmplType ExtTemplateType)
pkg/extensions/extension.go:39
↓ 17 callersFunctionCurrentLoginName
(client *Client, hostname string)
api/queries_user.go:7
↓ 17 callersMethodCyan
(t string)
pkg/iostreams/color.go:163
↓ 17 callersMethodFinish
()
internal/gh/ghtelemetry/telemetry.go:42
↓ 17 callersFunctionIsolateConfig
IsolateConfig prevents ambient Git configuration and repository routing from reaching tests that shell out to real Git. https://git-scm.com/docs/git-
git/test.go:14
↓ 17 callersMethodMigrate
(m gh.Migration)
internal/config/config.go:207
↓ 17 callersMethodRecord
(event Event)
internal/gh/ghtelemetry/telemetry.go:27
↓ 17 callersMethodSetColorEnabled
(colorEnabled bool)
pkg/iostreams/iostreams.go:153
↓ 17 callersMethodTerminalTheme
TerminalTheme returns "light", "dark", or "none" depending on the background color of the terminal.
pkg/iostreams/iostreams.go:145
↓ 17 callersMethodlist
(includeMetadata bool)
pkg/cmd/extension/manager.go:151
↓ 17 callersMethodverify
(finalHead: string, reviewIds: readonly number[])
evals/src/suites/events/smoke-protocol.ts:6
↓ 16 callersFunctionExactArgs
(n int, msg string)
pkg/cmdutil/args.go:24
↓ 16 callersFunctionExpectCommandToSupportJSONFields
ExpectCommandToSupportJSONFields asserts that the provided command supports exactly the provided fields. Ordering of the expected fields is not import
pkg/jsonfieldstest/jsonfieldstest.go:41
↓ 16 callersMethodGreen
(t string)
pkg/iostreams/color.go:118
↓ 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 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:1485
↓ 16 callersFunctionNewService
NewService creates a new telemetry service with the provided flush function and options.
internal/telemetry/telemetry.go:213
← previousnext →101–200 of 7,487, ranked by callers