()
| 42 | } |
| 43 | |
| 44 | func (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 | } |
no test coverage detected