MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,572 in github.com/cli/cli

MethodSet
(value string)
pkg/cmdutil/flags.go:80
MethodSet
(value string)
pkg/cmdutil/flags.go:104
MethodSet
(value string)
pkg/cmdutil/flags.go:132
MethodSet
(value string)
pkg/cmdutil/flags.go:153
MethodSet
(s string)
pkg/cmd/event/listen/listen.go:205
MethodSet
(str string)
pkg/cmd/codespace/create.go:48
MethodSet
Set calls SetFunc.
internal/gh/mock/config.go:819
MethodSetActiveToken
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
MethodSetCalls
SetCalls gets all the calls that were made to Set. Check the length with: len(mockedConfig.SetCalls())
internal/gh/mock/config.go:842
MethodSetDeadline
(deadline time.Time)
internal/codespaces/connection/tunnels_api_server_mock.go:498
MethodSetHosts
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
MethodSetSampleRate
SetSampleRate captures the sampling policy requested by a command.
internal/telemetry/fake.go:47
MethodSetSampleRate
SetSampleRate selects the sampling policy for the whole invocation. Changes after Finish have no effect.
internal/telemetry/telemetry.go:308
MethodSetSampleRate
(rate int)
internal/config/refreshable_telemetry_test.go:37
MethodSetTelemetryCommand
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
MethodSetTelemetryRecorder
SetTelemetryRecorder supplies the recorder used to report token refresh attempts. Because Authentication returns a single shared AuthConfig, a recorde
internal/config/config.go:313
MethodSetTokenRefresher
(refresher gh.TokenRefresher)
pkg/cmd/factory/default_test.go:555
MethodSetTokenRefresher
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
MethodSize
()
pkg/iostreams/iostreams.go:582
MethodSize
()
internal/safepaths/link_windows_test.go:166
FunctionSomeIfNonZero
(value T)
pkg/option/option.go:49
MethodSpinner
Spinner calls SpinnerFunc.
internal/gh/mock/config.go:859
MethodSpinnerCalls
SpinnerCalls gets all the calls that were made to Spinner. Check the length with: len(mockedConfig.SpinnerCalls())
internal/gh/mock/config.go:878
MethodStartCodespace
(ctx context.Context, name string)
pkg/cmd/codespace/common.go:75
MethodStartCodespace
StartCodespace calls StartCodespaceFunc.
pkg/cmd/codespace/mock_api.go:923
MethodStartCodespace
(ctx context.Context, name string)
internal/codespaces/codespaces_test.go:227
MethodStartCodespace
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
MethodStartCodespaceCalls
StartCodespaceCalls gets all the calls that were made to StartCodespace. Check the length with: len(mockedapiClient.StartCodespaceCalls())
pkg/cmd/codespace/mock_api.go:944
MethodStartJupyterServer
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
MethodStartProgressIndicator
()
pkg/cmd/pr/shared/finder_test.go:1004
MethodStartProgressIndicator
()
pkg/iostreams/iostreams.go:300
MethodStartProgressIndicatorWithLabel
(s string)
internal/codespaces/codespaces_test.go:249
MethodStartRemoteServerAsync
StartRemoteServerAsync calls StartRemoteServerAsyncFunc.
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go:58
MethodStartRemoteServerAsync
(ctx context.Context, in *StartRemoteServerRequest, opts ...grpc.CallOption)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:36
MethodStartRemoteServerAsync
(context.Context, *StartRemoteServerRequest)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:49
MethodStartRemoteServerAsync
(context.Context, *StartRemoteServerRequest)
internal/codespaces/rpc/ssh/ssh_server_host_service.v1_grpc.pb.go:57
MethodStartRemoteServerAsyncCalls
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
MethodStartSSHServer
Starts a remote SSH server to allow the user to connect to the codespace via SSH
internal/codespaces/rpc/invoker.go:216
MethodStatus
()
api/queries_pr_review.go:94
MethodStatus
()
api/queries_comments.go:167
MethodStopCodespace
StopCodespace calls StopCodespaceFunc.
pkg/cmd/codespace/mock_api.go:959
MethodStopCodespace
(ctx context.Context, codespaceName string, orgName string, userName string)
internal/codespaces/api/api.go:619
MethodStopCodespaceCalls
StopCodespaceCalls gets all the calls that were made to StopCodespace. Check the length with: len(mockedapiClient.StopCodespaceCalls())
pkg/cmd/codespace/mock_api.go:984
MethodStopProgressIndicator
()
pkg/cmd/pr/shared/finder.go:35
MethodStopProgressIndicator
()
pkg/cmd/pr/shared/finder_test.go:1008
MethodStopProgressIndicator
()
internal/codespaces/codespaces_test.go:250
MethodString
()
script/ghmock/run.go:75
MethodString
()
git/objects.go:38
MethodString
()
pkg/cmdutil/flags.go:85
MethodString
()
pkg/cmdutil/flags.go:110
MethodString
()
pkg/cmdutil/flags.go:140
MethodString
()
pkg/cmdutil/flags.go:164
MethodString
()
pkg/surveyext/editor_test.go:266
MethodString
(cs *iostreams.ColorScheme)
pkg/cmd/auth/status/status.go:87
MethodString
()
pkg/cmd/gpg-key/list/http.go:21
MethodString
()
pkg/cmd/event/listen/listen.go:197
MethodString
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
MethodString
()
pkg/cmd/codespace/create.go:40
MethodString
String implements the [fmt.Stringer] interface.
pkg/option/option.go:59
MethodString
()
internal/codespaces/states.go:20
MethodString
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:38
MethodString
()
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.pb.go:81
MethodString
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:40
MethodString
()
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.pb.go:90
MethodString
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:41
MethodString
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:96
MethodString
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:150
MethodString
()
internal/codespaces/rpc/codespace/codespace_host_service.v1.pb.go:197
MethodString
()
internal/barista/observability/telemetry.pb.go:46
MethodString
()
internal/barista/observability/telemetry.pb.go:113
MethodString
()
internal/barista/observability/telemetry.pb.go:157
MethodSwap
(i, j int)
git/objects.go:12
MethodSwap
(i, j int)
context/remote.go:75
MethodSwap
(i, j int)
pkg/cmd/status/status.go:163
MethodSwap
(i, j int)
pkg/cmd/run/shared/shared.go:249
MethodSwitchUser
(hostname, user string)
internal/config/config.go:591
MethodTelemetry
Telemetry calls TelemetryFunc.
internal/gh/mock/config.go:891
MethodTelemetryCalls
TelemetryCalls gets all the calls that were made to Telemetry. Check the length with: len(mockedConfig.TelemetryCalls())
internal/gh/mock/config.go:907
FunctionTestAPIHostForHost
(t *testing.T)
internal/config/auth_config_test.go:1120
FunctionTestAPI_EditCodespace
(t *testing.T)
internal/codespaces/api/api_test.go:713
FunctionTestAPI_EditCodespacePendingOperation
(t *testing.T)
internal/codespaces/api/api_test.go:780
FunctionTestAbsoluteEmptyPathStringPanic
(t *testing.T)
internal/safepaths/absolute_test.go:23
FunctionTestAcceptance
(t *testing.T)
acceptance/acceptance_test.go:599
FunctionTestAcceptanceScriptsDeclareFixtureRepository
(t *testing.T)
acceptance/user_capability_test.go:168
FunctionTestAcceptanceScriptsDeclareUserCapabilityRequirement
(t *testing.T)
acceptance/user_capability_test.go:155
FunctionTestAccessControlEntriesToVisibility
(t *testing.T)
internal/codespaces/portforwarder/port_forwarder_test.go:49
FunctionTestAccessiblePrompter
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
FunctionTestActionsFeatures
(t *testing.T)
internal/featuredetection/feature_detection_test.go:890
FunctionTestActivateUserResolvesRefreshableCredential
(t *testing.T)
internal/config/refreshable_test.go:311
FunctionTestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring
TestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring pins an intentional behavior change introduced with the refreshable-credential groundwork.
internal/config/auth_config_test.go:840
FunctionTestActiveTokenType
(t *testing.T)
internal/config/auth_config_test.go:1000
FunctionTestActiveTokenWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:1031
FunctionTestActorDisplayName
(t *testing.T)
api/queries_repo_test.go:826
FunctionTestAddAuthTokenHeaderLegacyConfig
(t *testing.T)
api/http_client_test.go:282
FunctionTestAddComment
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3416
FunctionTestAddFlag
(t *testing.T)
internal/attachments/flags_test.go:49
FunctionTestAddFormatFlags
(t *testing.T)
pkg/cmdutil/json_flags_test.go:209
FunctionTestAddJSONFlags
(t *testing.T)
pkg/cmdutil/json_flags_test.go:17
FunctionTestAddJSONFlagsSetsAnnotations
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
FunctionTestAddJSONFlagsWithoutShorthand
(t *testing.T)
pkg/cmdutil/json_flags_test.go:122
← previousnext →5,101–5,200 of 7,572, ranked by callers