(cmd *cobra.Command)
| 25 | } |
| 26 | |
| 27 | func (flags *configFlags) registerPersistent(cmd *cobra.Command) { |
| 28 | flags.pathFlag.registerPersistent(cmd) |
| 29 | cmd.PersistentFlags().StringVar( |
| 30 | &flags.environment, "environment", "dev", "environment to use, when supported (e.g. secrets support dev, prod, preview.)", |
| 31 | ) |
| 32 | } |
| 33 | |
| 34 | // pathFlag is a flag for specifying the path to a devbox.json file |
| 35 | type pathFlag struct { |
nothing calls this directly
no test coverage detected