(plugin configv3.Plugin)
| 65 | } |
| 66 | |
| 67 | func RunPlugin(plugin configv3.Plugin) error { |
| 68 | _, commandUI, err := getCFConfigAndCommandUIObjects() |
| 69 | if err != nil { |
| 70 | fmt.Fprintf(os.Stderr, "%s\n", err.Error()) |
| 71 | return err |
| 72 | } |
| 73 | defer commandUI.FlushDeferred() |
| 74 | pluginErr := plugin_transition.RunPlugin(plugin, commandUI) |
| 75 | if pluginErr != nil { |
| 76 | return handleError(pluginErr, commandUI) |
| 77 | } |
| 78 | return nil |
| 79 | } |
| 80 | |
| 81 | func getCFConfigAndCommandUIObjects() (*configv3.Config, *ui.UI, error) { |
| 82 | cfConfig, configErr := configv3.LoadConfig(configv3.FlagOverride{ |
nothing calls this directly
no test coverage detected