MCPcopy
hub / github.com/runfinch/finch / Creator

Interface Creator

pkg/command/command.go:12–14  ·  view source on GitHub ↗

Creator creates a Command. The semantics of the parameters are the same as those of exec.Command. go:generate mockgen -copyright_file=../../copyright_header -destination=../mocks/command_command_creator.go -package=mocks -mock_names Creator=CommandCreator . Creator

Source from the content-addressed store, hash-verified

10//
11//go:generate mockgen -copyright_file=../../copyright_header -destination=../mocks/command_command_creator.go -package=mocks -mock_names Creator=CommandCreator . Creator
12type Creator interface {
13 Create(name string, args ...string) Command
14}
15
16// Command contains 2 sets of methods.
17// The first set contains the methods to configure the command to be run (e.g., SetEnv).

Callers 8

createMethod · 0.65
createMethod · 0.65
getDiskInfoMethod · 0.65

Implementers 8

nerdctlCmdCreatorpkg/command/nerdctl_native.go
ExecCmdCreatorpkg/command/exec.go
MockdiskFSpkg/mocks/pkg_disk_disk.go
MockdiskFSMockRecorderpkg/mocks/pkg_disk_disk.go
CommandCreatorpkg/mocks/command_command_creator.go
CommandCreatorMockRecorderpkg/mocks/command_command_creator.go
NerdctlCmdCreatorpkg/mocks/command_nerdctl_cmd_creator.
NerdctlCmdCreatorMockRecorderpkg/mocks/command_nerdctl_cmd_creator.

Calls

no outgoing calls

Tested by

no test coverage detected