(c *cobra.Command)
| 146 | } |
| 147 | |
| 148 | func ParseEnv(c *cobra.Command) Env { |
| 149 | dr := c.Flag("dry-run") |
| 150 | r := c.Flag("remote") |
| 151 | nr := c.Flag("no-remote") |
| 152 | return Env{ |
| 153 | DryRun: dr != nil && dr.Changed, |
| 154 | Debug: opts.DebugFromEnv(), |
| 155 | Experiment: opts.ExperimentFromEnv(), |
| 156 | Remote: r != nil && r.Value.String() == "true", |
| 157 | NoRemote: nr != nil && nr.Value.String() == "true", |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | var ErrPluginProcessDisabled = errors.New("plugin: process-based plugins disabled via SQLCDEBUG=processplugins=0") |
| 162 |
no test coverage detected