MCPcopy
hub / github.com/cli/cli / Runnable

Interface Runnable

internal/run/run.go:17–20  ·  view source on GitHub ↗

Runnable is typically an exec.Cmd or its stub in tests

Source from the content-addressed store, hash-verified

15
16// Runnable is typically an exec.Cmd or its stub in tests
17type Runnable interface {
18 Output() ([]byte, error)
19 Run() error
20}
21
22// PrepareCmd extends exec.Cmd with extra error reporting features and provides a
23// hook to stub command execution in tests

Callers 16

cmdOutputFunction · 0.65
initRepoFunction · 0.65
RemotesMethod · 0.65
UpdateRemoteURLMethod · 0.65
SetRemoteResolutionMethod · 0.65
CurrentBranchMethod · 0.65
ShowRefsMethod · 0.65
ConfigMethod · 0.65
runFunction · 0.65
TestIsURLFunction · 0.65
TestParseURLFunction · 0.65
TestClientCommandFunction · 0.65

Implementers 4

Commandgit/command.go
OutputStubtest/helpers.go
cmdWithStderrinternal/run/run.go
commandStubinternal/run/stub.go

Calls

no outgoing calls

Tested by

no test coverage detected