(envName string, cmd *cobra.Command)
| 210 | } |
| 211 | |
| 212 | func printEnvIfNotSpecified(envName string, cmd *cobra.Command) error { |
| 213 | out, err := envStringIfNotSpecified(envName, cmd) |
| 214 | if err != nil { |
| 215 | return err |
| 216 | } |
| 217 | |
| 218 | if out != "" { |
| 219 | fmt.Print(out) |
| 220 | } |
| 221 | |
| 222 | return nil |
| 223 | } |
| 224 | |
| 225 | func envStringIfNotSpecified(envName string, cmd *cobra.Command) (string, error) { |
| 226 | envNames, err := listConfiguredEnvNames() |
no test coverage detected