Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
Method
String
()
pkg/cmd/gpg-key/list/http.go:21
Method
String
()
pkg/cmd/event/listen/listen.go:194
Method
String
A QualifiedHeadRef without an owner returns <branch>, while a QualifiedHeadRef with an owner returns <owner>:<branch>.
pkg/cmd/pr/shared/find_refs_resolution.go:70
Method
String
()
pkg/cmd/codespace/create.go:40
Method
String
String implements the [fmt.Stringer] interface.
pkg/option/option.go:59
Method
String
()
internal/codespaces/states.go:20
Method
String
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:38
Method
String
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:81
Method
String
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:40
Method
String
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:90
Method
String
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:41
Method
String
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:96
Method
String
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:150
Method
String
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:197
Method
String
()
internal/barista/observability/telemetry.pb.go:46
Method
String
()
internal/barista/observability/telemetry.pb.go:113
Method
String
()
internal/barista/observability/telemetry.pb.go:157
Method
Swap
(i, j int)
git/objects.go:12
Method
Swap
(i, j int)
context/remote.go:75
Method
Swap
(i, j int)
pkg/cmd/status/status.go:163
Method
Swap
(i, j int)
pkg/cmd/run/shared/shared.go:249
Method
SwitchUser
(hostname, user string)
internal/config/config.go:567
Method
Telemetry
Telemetry calls TelemetryFunc.
internal/gh/mock/config.go:891
Method
TelemetryCalls
TelemetryCalls gets all the calls that were made to Telemetry. Check the length with: len(mockedConfig.TelemetryCalls())
internal/gh/mock/config.go:907
Function
TestAPIHostForHost
(t *testing.T)
internal/config/auth_config_test.go:1118
Function
TestAPI_EditCodespace
(t *testing.T)
internal/codespaces/api/api_test.go:713
Function
TestAPI_EditCodespacePendingOperation
(t *testing.T)
internal/codespaces/api/api_test.go:780
Function
TestAbsoluteEmptyPathStringPanic
(t *testing.T)
internal/safepaths/absolute_test.go:23
Function
TestAcceptance
(t *testing.T)
acceptance/acceptance_test.go:599
Function
TestAcceptanceScriptsDeclareFixtureRepository
(t *testing.T)
acceptance/user_capability_test.go:168
Function
TestAcceptanceScriptsDeclareUserCapabilityRequirement
(t *testing.T)
acceptance/user_capability_test.go:155
Function
TestAccessControlEntriesToVisibility
(t *testing.T)
internal/codespaces/portforwarder/port_forwarder_test.go:49
Function
TestAccessiblePrompter
The following tests are broadly testing the accessible prompter, and NOT asserting on the prompter's complete and exact output strings. These tests g
internal/prompter/accessible_prompter_test.go:37
Function
TestActionsFeatures
(t *testing.T)
internal/featuredetection/feature_detection_test.go:777
Function
TestActivateUserResolvesRefreshableCredential
(t *testing.T)
internal/config/refreshable_test.go:311
Function
TestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring
TestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring pins an intentional behavior change introduced with the refreshable-credential groundwork.
internal/config/auth_config_test.go:838
Function
TestActiveTokenType
(t *testing.T)
internal/config/auth_config_test.go:998
Function
TestActiveTokenWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:870
Function
TestActorDisplayName
(t *testing.T)
api/queries_repo_test.go:826
Function
TestAddAuthTokenHeaderLegacyConfig
(t *testing.T)
api/http_client_test.go:281
Function
TestAddComment
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3416
Function
TestAddFlag
(t *testing.T)
internal/attachments/flags_test.go:49
Function
TestAddFormatFlags
(t *testing.T)
pkg/cmdutil/json_flags_test.go:209
Function
TestAddJSONFlags
(t *testing.T)
pkg/cmdutil/json_flags_test.go:17
Function
TestAddJSONFlagsSetsAnnotations
TestAddJSONFlagsSetsAnnotations asserts that `AddJSONFlags` function adds the appropriate annotation to the command, which could later be used by doc
pkg/cmdutil/json_flags_test.go:163
Function
TestAddJSONFlagsWithoutShorthand
(t *testing.T)
pkg/cmdutil/json_flags_test.go:122
Function
TestAdvancedIssueSearchString
(t *testing.T)
pkg/search/query_test.go:110
Function
TestAdvancedIssueSearchSupport
(t *testing.T)
internal/featuredetection/feature_detection_test.go:444
Function
TestAliasAreSet
(t *testing.T)
pkg/cmd/agent-task/agent_task_test.go:155
Function
TestAliasList
(t *testing.T)
pkg/cmd/alias/list/list_test.go:17
Function
TestAlreadyRebuildingCodespace
(t *testing.T)
pkg/cmd/codespace/rebuild_test.go:11
Function
TestApiActorsSupported
(t *testing.T)
pkg/cmd/issue/edit/edit_test.go:2126
Function
TestApiLogFetcher
(t *testing.T)
pkg/cmd/run/view/logs_test.go:37
Function
TestApp_Create
(t *testing.T)
pkg/cmd/codespace/create_test.go:64
Function
TestApp_List
(t *testing.T)
pkg/cmd/codespace/list_test.go:71
Function
TestApp_Select
(t *testing.T)
pkg/cmd/codespace/select_test.go:16
Function
TestApp_StopCodespace
(t *testing.T)
pkg/cmd/codespace/stop_test.go:13
Function
TestApp_VSCode
(t *testing.T)
pkg/cmd/codespace/code_test.go:12
Function
TestAppendParagraph
(t *testing.T)
internal/attachments/attach_test.go:542
Function
TestApplySet
(t *testing.T)
script/ghmock/set_test.go:189
Function
TestAreFlagsValid
(t *testing.T)
pkg/cmd/attestation/verify/options_test.go:25
Function
TestAreFlagsValid
(t *testing.T)
pkg/cmd/attestation/download/options_test.go:10
Function
TestArtifactDigestWithAlgorithm
(t *testing.T)
pkg/cmd/attestation/artifact/digest/digest_test.go:11
Function
TestArtifactExportData
(t *testing.T)
pkg/cmd/issue/artifact/client/types_test.go:12
Function
TestArtifactWithVersionsExportData
(t *testing.T)
pkg/cmd/issue/artifact/client/types_test.go:90
Function
TestAssetMarkdown
(t *testing.T)
internal/attachments/userasset_test.go:271
Function
TestAssetRendersAsPlayer
(t *testing.T)
internal/attachments/userasset_test.go:333
Function
TestAttachAssetsToMarkdown
(t *testing.T)
internal/attachments/references_test.go:25
Function
TestAttachAssetsToMarkdownFixture
One markdown document covering every syntax this package handles, so the behaviour can be read as markdown rather than as Go string literals. Run wit
internal/attachments/references_fixture_test.go:47
Function
TestAttachmentTelemetry
(t *testing.T)
internal/attachments/flags_test.go:100
Function
TestAuthResultFromToken
(t *testing.T)
internal/authflow/refresh_test.go:129
Function
TestAuthTelemetryEvent_nilIsNoOp
(t *testing.T)
pkg/cmd/auth/shared/telemetry_test.go:89
Function
TestAuthTelemetryEvent_recordGitProtocolUnset
(t *testing.T)
pkg/cmd/auth/shared/telemetry_test.go:73
Function
TestAuthTelemetryEvent_recordStorageKeyring
(t *testing.T)
pkg/cmd/auth/shared/telemetry_test.go:81
Function
TestAuthTelemetryEvent_records
(t *testing.T)
pkg/cmd/auth/shared/telemetry_test.go:49
Function
TestAuthenticatingGitCredentials
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:593
Function
TestAutolinkCreator_Create
(t *testing.T)
pkg/cmd/repo/autolink/create/http_test.go:17
Function
TestAutolinkDeleter_Delete
(t *testing.T)
pkg/cmd/repo/autolink/delete/http_test.go:16
Function
TestAutolinkLister_List
(t *testing.T)
pkg/cmd/repo/autolink/list/http_test.go:16
Function
TestAutolinkViewer_View
(t *testing.T)
pkg/cmd/repo/autolink/view/http_test.go:16
Function
TestBaseRepoQuerySelections
TestBaseRepoQuerySelections guards fields that must be explicitly requested. A field left out of a query is silently zero rather than an error, so the
api/queries_repo_test.go:146
Function
TestBeginAuthTelemetry_gating
(t *testing.T)
pkg/cmd/auth/shared/telemetry_test.go:13
Function
TestBinaryContentType
(t *testing.T)
pkg/iostreams/content_test.go:14
Function
TestBranchDeleteRemote
(t *testing.T)
api/queries_pr_test.go:15
Function
TestBrowseModelClearsTransientStatusOnNextInteraction
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:617
Function
TestBrowseModelDoesNotQuitWhileInstallIsRunning
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:709
Function
TestBrowseModelDoesNotReloadReadmeWhenFilteringKeepsSelection
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:267
Function
TestBrowseModelDoesNotStartDuplicateInstall
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:686
Function
TestBrowseModelFiltersExtensions
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:199
Function
TestBrowseModelFiltersExtensionsByDisplayedStatus
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:220
Function
TestBrowseModelForwardsCursorMessagesWhileFiltering
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:641
Function
TestBrowseModelIgnoresStaleReadmeResult
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:401
Function
TestBrowseModelInstallsSelectedExtension
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:656
Function
TestBrowseModelKeepsDescriptionsReadableWithColorEnabled
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:178
Function
TestBrowseModelKeepsExtensionInstalledWhenRemovalFails
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:852
Function
TestBrowseModelKeepsExtensionUninstalledWhenInstallationFails
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:786
Function
TestBrowseModelKeepsFooterWithinTerminalWidth
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:126
Function
TestBrowseModelKeepsMainViewWithinTerminalHeight
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:75
Function
TestBrowseModelLoadsReadmeForFilteredSelection
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:300
Function
TestBrowseModelMovesSelectionDown
(t *testing.T)
pkg/cmd/extension/browse/model_test.go:19
← previous
next →
5,101–5,200 of 7,487, ranked by callers