()
| 177 | } |
| 178 | |
| 179 | func ExampleInstance_DisplayOutput_markdown() { |
| 180 | instance := &Instance{ |
| 181 | TargetVersions: map[string]string{ |
| 182 | "foo": "v1.16.0", |
| 183 | }, |
| 184 | Outputs: []*Output{ |
| 185 | testOutput1, |
| 186 | testOutput2, |
| 187 | }, |
| 188 | OutputFormat: "markdown", |
| 189 | Components: []string{"foo"}, |
| 190 | } |
| 191 | _ = instance.DisplayOutput() |
| 192 | |
| 193 | // Output: |
| 194 | // | NAME | NAMESPACE | KIND | VERSION | REPLACEMENT | DEPRECATED | DEPRECATED IN | REMOVED | REMOVED IN | REPL AVAIL | REPL AVAIL IN | |
| 195 | // |---------------|-----------------|------------|--------------------|-------------|------------|---------------|---------|------------|------------|---------------| |
| 196 | // | some name one | pluto-namespace | Deployment | extensions/v1beta1 | apps/v1 | true | v1.9.0 | true | v1.16.0 | true | v1.10.0 | |
| 197 | // | some name two | <UNKNOWN> | Deployment | extensions/v1beta1 | apps/v1 | true | v1.9.0 | true | v1.16.0 | true | v1.10.0 | |
| 198 | } |
| 199 | |
| 200 | func ExampleInstance_DisplayOutput_markdown_customcolumns() { |
| 201 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…