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

Method Run

app/cli/pkg/action/policy_develop_init.go:44–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (action *PolicyInit) Run() error {
45 initOpts := &policydevel.InitOptions{
46 Directory: action.opts.Directory,
47 Embedded: action.opts.Embedded,
48 Force: action.opts.Force,
49 Name: action.opts.Name,
50 Description: action.opts.Description,
51 }
52
53 if err := policydevel.Initialize(initOpts); err != nil {
54 return fmt.Errorf("initializing policy: %w", err)
55 }
56
57 return nil
58}

Callers 1

newPolicyDevelopInitCmdFunction · 0.95

Calls 1

InitializeFunction · 0.92

Tested by

no test coverage detected