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

Function NewPolicyInit

app/cli/pkg/action/policy_develop_init.go:37–42  ·  view source on GitHub ↗
(opts *PolicyInitOpts, actionOpts *ActionsOpts)

Source from the content-addressed store, hash-verified

35}
36
37func NewPolicyInit(opts *PolicyInitOpts, actionOpts *ActionsOpts) (*PolicyInit, error) {
38 return &PolicyInit{
39 ActionsOpts: actionOpts,
40 opts: opts,
41 }, nil
42}
43
44func (action *PolicyInit) Run() error {
45 initOpts := &policydevel.InitOptions{

Callers 1

newPolicyDevelopInitCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected