MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewPluginExec

Function NewPluginExec

app/cli/pkg/action/plugin_actions.go:127–129  ·  view source on GitHub ↗

NewPluginExec creates a new PluginExec action

(cfg *ActionsOpts, manager *plugins.Manager)

Source from the content-addressed store, hash-verified

125
126// NewPluginExec creates a new PluginExec action
127func NewPluginExec(cfg *ActionsOpts, manager *plugins.Manager) *PluginExec {
128 return &PluginExec{cfg: cfg, manager: manager}
129}
130
131// Run executes the PluginExec action
132func (action *PluginExec) Run(ctx context.Context, pluginName string, commandName string, config plugins.PluginExecConfig) (*PluginExecResult, error) {

Callers 1

createPluginCommandFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected