Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
Method
Set
(value string)
pkg/cmdutil/flags.go:80
Method
Set
(value string)
pkg/cmdutil/flags.go:104
Method
Set
(value string)
pkg/cmdutil/flags.go:132
Method
Set
(value string)
pkg/cmdutil/flags.go:153
Method
Set
(s string)
pkg/cmd/event/listen/listen.go:205
Method
Set
(str string)
pkg/cmd/codespace/create.go:48
Method
Set
Set calls SetFunc.
internal/gh/mock/config.go:819
Method
SetActiveToken
SetActiveToken will override any token resolution and return the given token and source for all calls to ActiveToken. Use for testing purposes only.
internal/config/config.go:419
Method
SetCalls
SetCalls gets all the calls that were made to Set. Check the length with: len(mockedConfig.SetCalls())
internal/gh/mock/config.go:842
Method
SetDeadline
(deadline time.Time)
internal/codespaces/connection/tunnels_api_server_mock.go:498
Method
SetHosts
SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.
internal/config/config.go:503
Method
SetSampleRate
SetSampleRate captures the sampling policy requested by a command.
internal/telemetry/fake.go:47
Method
SetSampleRate
SetSampleRate selects the sampling policy for the whole invocation. Changes after Finish have no effect.
internal/telemetry/telemetry.go:308
Method
SetSampleRate
(rate int)
internal/config/refreshable_telemetry_test.go:37
Method
SetTelemetryCommand
SetTelemetryCommand sets the command reported with token refresh attempts, such as "gh auth token". Callers must not pass user-defined names, like tho
internal/config/config.go:319
Method
SetTelemetryRecorder
SetTelemetryRecorder supplies the recorder used to report token refresh attempts. Because Authentication returns a single shared AuthConfig, a recorde
internal/config/config.go:313
Method
SetTokenRefresher
(refresher gh.TokenRefresher)
pkg/cmd/factory/default_test.go:555
Method
SetTokenRefresher
SetTokenRefresher supplies the refresher used to renew tokens. Because Authentication returns a single shared AuthConfig, a refresher set once remains
internal/config/config.go:307
Method
Size
()
pkg/iostreams/iostreams.go:582
Method
Size
()
internal/safepaths/link_windows_test.go:166
Function
SomeIfNonZero
(value T)
pkg/option/option.go:49
Method
Spinner
Spinner calls SpinnerFunc.
internal/gh/mock/config.go:859
Method
SpinnerCalls
SpinnerCalls gets all the calls that were made to Spinner. Check the length with: len(mockedConfig.SpinnerCalls())
internal/gh/mock/config.go:878
Method
StartCodespace
(ctx context.Context, name string)
pkg/cmd/codespace/common.go:75
Method
StartCodespace
StartCodespace calls StartCodespaceFunc.
pkg/cmd/codespace/mock_api.go:923
Method
StartCodespace
(ctx context.Context, name string)
internal/codespaces/codespaces_test.go:227
Method
StartCodespace
StartCodespace starts a codespace for the user. If the codespace is already running, the returned error from the API is ignored.
internal/codespaces/api/api.go:586
Method
StartCodespaceCalls
StartCodespaceCalls gets all the calls that were made to StartCodespace. Check the length with: len(mockedapiClient.StartCodespaceCalls())
pkg/cmd/codespace/mock_api.go:944
Method
StartJupyterServer
Starts a remote JupyterLab server to allow the user to connect to the codespace via JupyterLab in their browser
internal/codespaces/rpc/invoker.go:169
Method
StartProgressIndicator
()
pkg/cmd/pr/shared/finder_test.go:1004
Method
StartProgressIndicator
()
pkg/iostreams/iostreams.go:300
Method
StartProgressIndicatorWithLabel
(s string)
internal/codespaces/codespaces_test.go:249
Method
StartRemoteServerAsync
StartRemoteServerAsync calls StartRemoteServerAsyncFunc.
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go:58
Method
StartRemoteServerAsync
(ctx context.Context, in *StartRemoteServerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:36
Method
StartRemoteServerAsync
(context.Context, *StartRemoteServerRequest)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:49
Method
StartRemoteServerAsync
(context.Context, *StartRemoteServerRequest)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:57
Method
StartRemoteServerAsyncCalls
StartRemoteServerAsyncCalls gets all the calls that were made to StartRemoteServerAsync. Check the length with: len(mockedSshServerHostServer.StartR
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go:79
Method
StartSSHServer
Starts a remote SSH server to allow the user to connect to the codespace via SSH
internal/codespaces/rpc/invoker.go:216
Method
Status
()
api/queries_pr_review.go:94
Method
Status
()
api/queries_comments.go:167
Method
StopCodespace
StopCodespace calls StopCodespaceFunc.
pkg/cmd/codespace/mock_api.go:959
Method
StopCodespace
(ctx context.Context, codespaceName string, orgName string, userName string)
internal/codespaces/api/api.go:619
Method
StopCodespaceCalls
StopCodespaceCalls gets all the calls that were made to StopCodespace. Check the length with: len(mockedapiClient.StopCodespaceCalls())
pkg/cmd/codespace/mock_api.go:984
Method
StopProgressIndicator
()
pkg/cmd/pr/shared/finder.go:35
Method
StopProgressIndicator
()
pkg/cmd/pr/shared/finder_test.go:1008
Method
StopProgressIndicator
()
internal/codespaces/codespaces_test.go:250
Method
String
()
script/ghmock/run.go:75
Method
String
()
git/objects.go:38
Method
String
()
pkg/cmdutil/flags.go:85
Method
String
()
pkg/cmdutil/flags.go:110
Method
String
()
pkg/cmdutil/flags.go:140
Method
String
()
pkg/cmdutil/flags.go:164
Method
String
()
pkg/surveyext/editor_test.go:266
Method
String
(cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:87
Method
String
()
pkg/cmd/gpg-key/list/http.go:21
Method
String
()
pkg/cmd/event/listen/listen.go:197
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:591
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:1120
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:890
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:840
Function
TestActiveTokenType
(t *testing.T)
internal/config/auth_config_test.go:1000
Function
TestActiveTokenWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:1031
Function
TestActorDisplayName
(t *testing.T)
api/queries_repo_test.go:826
Function
TestAddAuthTokenHeaderLegacyConfig
(t *testing.T)
api/http_client_test.go:282
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
← previous
next →
5,101–5,200 of 7,572, ranked by callers