| 50 | } |
| 51 | |
| 52 | type JSONView struct { |
| 53 | // hclog is used for all output in JSON UI mode. The logger has an internal |
| 54 | // mutex to ensure that messages are not interleaved. |
| 55 | log hclog.Logger |
| 56 | |
| 57 | // We hold a reference to the view entirely to allow us to access the |
| 58 | // ConfigSources function pointer, in order to render source snippets into |
| 59 | // diagnostics. This is even more unfortunate than the same reference in the |
| 60 | // view. |
| 61 | // |
| 62 | // Do not be tempted to dereference the configSource value upon logger init, |
| 63 | // as it will likely be updated later. |
| 64 | view *View |
| 65 | } |
| 66 | |
| 67 | func (v *JSONView) Version() { |
| 68 | version := tfversion.String() |
nothing calls this directly
no outgoing calls
no test coverage detected