()
| 156 | } |
| 157 | |
| 158 | func ExampleInstance_DisplayOutput_custom() { |
| 159 | instance := &Instance{ |
| 160 | TargetVersions: map[string]string{ |
| 161 | "foo": "v1.16.0", |
| 162 | }, |
| 163 | Outputs: []*Output{ |
| 164 | testOutput1, |
| 165 | testOutput2, |
| 166 | }, |
| 167 | OutputFormat: "custom", |
| 168 | Components: []string{"foo"}, |
| 169 | CustomColumns: []string{"NAMESPACE", "NAME", "DEPRECATED IN", "DEPRECATED", "REPLACEMENT", "VERSION", "KIND", "COMPONENT", "FILEPATH"}, |
| 170 | } |
| 171 | _ = instance.DisplayOutput() |
| 172 | |
| 173 | // Output: |
| 174 | // NAMESPACE-------- NAME----------- DEPRECATED IN-- DEPRECATED-- REPLACEMENT-- VERSION------------- KIND-------- COMPONENT-- FILEPATH------ |
| 175 | // pluto-namespace-- some name one-- v1.9.0--------- true-------- apps/v1------ extensions/v1beta1-- Deployment-- foo-------- path-to-file-- |
| 176 | // <UNKNOWN>-------- some name two-- v1.9.0--------- true-------- apps/v1------ extensions/v1beta1-- Deployment-- foo-------- <UNKNOWN>----- |
| 177 | } |
| 178 | |
| 179 | func ExampleInstance_DisplayOutput_markdown() { |
| 180 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…