(cfg *config.Config)
| 161 | var ErrPluginProcessDisabled = errors.New("plugin: process-based plugins disabled via SQLCDEBUG=processplugins=0") |
| 162 | |
| 163 | func (e *Env) Validate(cfg *config.Config) error { |
| 164 | for _, plugin := range cfg.Plugins { |
| 165 | if plugin.Process != nil && !e.Debug.ProcessPlugins { |
| 166 | return ErrPluginProcessDisabled |
| 167 | } |
| 168 | } |
| 169 | return nil |
| 170 | } |
| 171 | |
| 172 | func getConfigPath(stderr io.Writer, f *pflag.Flag) (string, string) { |
| 173 | if f != nil && f.Changed { |
no outgoing calls